Fix portability issue with ArrayRef initializer overloading
[alexxy/gromacs.git] / src / gromacs / selection / nbsearch.cpp
index 06ecbe62a37e417ebd5118ecff94f79711fd84c8..24a66ddbda7538ff88f2e9f9e03c72ed9356bc5f 100644 (file)
@@ -606,14 +606,14 @@ void AnalysisNeighborhoodPairSearchImpl::startSearch(
 {
     if (positions.index_ < 0)
     {
-        testPositions_ = ConstArrayRef<rvec>(positions.x_, positions.count_);
+        testPositions_ = constArrayRefFromArray<rvec>(positions.x_, positions.count_);
         reset(0);
     }
     else
     {
         // Somewhat of a hack: setup the array such that only the last position
         // will be used.
-        testPositions_ = ConstArrayRef<rvec>(positions.x_, positions.index_ + 1);
+        testPositions_ = constArrayRefFromArray<rvec>(positions.x_, positions.index_ + 1);
         reset(positions.index_);
     }
 }