Replace compat::make_unique with std::make_unique
[alexxy/gromacs.git] / src / gromacs / essentialdynamics / edsam.cpp
index 9e168eed9460c5a042ac1abab59b649ddc62bbd8..8ad287bf6d36de46478344b519e675904dfa5296 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,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.
@@ -43,8 +43,9 @@
 #include <cstring>
 #include <ctime>
 
+#include <memory>
+
 #include "gromacs/commandline/filenm.h"
-#include "gromacs/compat/make_unique.h"
 #include "gromacs/domdec/domdec_struct.h"
 #include "gromacs/fileio/gmxfio.h"
 #include "gromacs/fileio/xvgr.h"
@@ -1128,7 +1129,7 @@ static std::unique_ptr<gmx::EssentialDynamics> ed_open(
         const gmx_output_env_t *oenv,
         const t_commrec        *cr)
 {
-    auto        edHandle = gmx::compat::make_unique<gmx::EssentialDynamics>();
+    auto        edHandle = std::make_unique<gmx::EssentialDynamics>();
     auto        ed       = edHandle->getLegacyED();
     /* We want to perform ED (this switch might later be upgraded to EssentialDynamicsType::Flooding) */
     ed->eEDtype = EssentialDynamicsType::EDSampling;
@@ -1138,7 +1139,7 @@ static std::unique_ptr<gmx::EssentialDynamics> ed_open(
         // If we start from a checkpoint file, we already have an edsamHistory struct
         if (oh->edsamHistory == nullptr)
         {
-            oh->edsamHistory = gmx::compat::make_unique<edsamhistory_t>(edsamhistory_t {});
+            oh->edsamHistory = std::make_unique<edsamhistory_t>(edsamhistory_t {});
         }
         edsamhistory_t *EDstate = oh->edsamHistory.get();