Manage compiler flags and some include options per file or target, not globally
[alexxy/gromacs.git] / src / gromacs / selection / nbsearch.h
index 16fb23f4799fc4401c80d4c6a3f2ca40f68633b4..7280d206bb5b44e4707ca741df080e0d1ffc754a 100644 (file)
@@ -123,7 +123,7 @@ class AnalysisNeighborhoodPositions
          * Initializes positions from a vector of position vectors.
          */
         AnalysisNeighborhoodPositions(const std::vector<RVec> &x)
-            : count_(x.size()), index_(-1), x_(as_rvec_array(x.data())),
+            : count_(ssize(x)), index_(-1), x_(as_rvec_array(x.data())),
               exclusionIds_(nullptr), indices_(nullptr)
         {
         }
@@ -154,7 +154,7 @@ class AnalysisNeighborhoodPositions
         AnalysisNeighborhoodPositions &
         indexed(ArrayRef<const int> indices)
         {
-            count_   = indices.size();
+            count_   = ssize(indices);
             indices_ = indices.data();
             return *this;
         }