Replace compat::make_unique with std::make_unique
[alexxy/gromacs.git] / src / gromacs / restraint / restraintmdmodule.cpp
index c1f9882dc5cefa5f65863d839b30a5e0ffd90ef8..590516dfc011190bc5010ad6fb5ef602489f3d17 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2018, by the GROMACS development team, led by
+ * Copyright (c) 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.
@@ -37,7 +37,8 @@
 
 #include "restraintmdmodule.h"
 
-#include "gromacs/compat/make_unique.h"
+#include <memory>
+
 #include "gromacs/mdtypes/forceoutput.h"
 #include "gromacs/mdtypes/iforceprovider.h"
 
@@ -170,8 +171,8 @@ RestraintMDModuleImpl::~RestraintMDModuleImpl() = default;
 
 RestraintMDModuleImpl::RestraintMDModuleImpl(std::shared_ptr<IRestraintPotential> restraint,
                                              const std::vector<int>              &sites) :
-    forceProvider_(compat::make_unique<RestraintForceProvider>(restraint,
-                                                               sites))
+    forceProvider_(std::make_unique<RestraintForceProvider>(restraint,
+                                                            sites))
 {
     GMX_ASSERT(forceProvider_, "Class invariant implies non-null ForceProvider.");
 }
@@ -218,9 +219,9 @@ std::unique_ptr<RestraintMDModule>
 RestraintMDModule::create(std::shared_ptr<IRestraintPotential>  restraint,
                           const std::vector<int>               &sites)
 {
-    auto implementation = compat::make_unique<RestraintMDModuleImpl>(std::move(restraint),
-                                                                     sites);
-    auto newModule = compat::make_unique<RestraintMDModule>(std::move(implementation));
+    auto implementation = std::make_unique<RestraintMDModuleImpl>(std::move(restraint),
+                                                                  sites);
+    auto newModule = std::make_unique<RestraintMDModule>(std::move(implementation));
     return newModule;
 }