Replace compat::make_unique with std::make_unique
[alexxy/gromacs.git] / src / gromacs / awh / bias.cpp
index 437784e24d3c4c760af9f068ffec1cbf4c7face9..3c39990acbc191b760488fd51f1f5000090ba065 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2015,2016,2017,2018, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2017,2018,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -54,8 +54,8 @@
 #include <cstring>
 
 #include <algorithm>
+#include <memory>
 
-#include "gromacs/compat/make_unique.h"
 #include "gromacs/fileio/gmxfio.h"
 #include "gromacs/gmxlib/network.h"
 #include "gromacs/math/functions.h"
@@ -351,11 +351,11 @@ Bias::Bias(int                             biasIndexInCollection,
         double blockLength = 0;
         /* Construct the force correlation object. */
         forceCorrelationGrid_ =
-            compat::make_unique<CorrelationGrid>(state_.points().size(), ndim(),
-                                                 blockLength, CorrelationGrid::BlockLengthMeasure::Time,
-                                                 awhParams.nstSampleCoord*mdTimeStep);
+            std::make_unique<CorrelationGrid>(state_.points().size(), ndim(),
+                                              blockLength, CorrelationGrid::BlockLengthMeasure::Time,
+                                              awhParams.nstSampleCoord*mdTimeStep);
 
-        writer_ = compat::make_unique<BiasWriter>(*this);
+        writer_ = std::make_unique<BiasWriter>(*this);
     }
 }