Remove PrivateImplPointer in favour of std::unique_ptr
[alexxy/gromacs.git] / src / gromacs / utility / keyvaluetreetransform.h
index 9c2a2f5acd5bdefa5a29ad612c290f93d2c9727a..27b6f7dc4225adf2a5c1169634200945f2670806 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018,2019,2021, 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.
 #define GMX_UTILITY_KEYVALUETREETRANSFORM_H
 
 #include <functional>
+#include <memory>
 #include <string>
 #include <typeindex>
 #include <vector>
 
 #include "gromacs/utility/any.h"
-#include "gromacs/utility/classhelpers.h"
 #include "gromacs/utility/keyvaluetree.h"
 
 namespace gmx
@@ -137,7 +137,7 @@ public:
 private:
     class Impl;
 
-    PrivateImplPointer<Impl> impl_;
+    std::unique_ptr<Impl> impl_;
 };
 
 /*! \libinternal \brief
@@ -351,7 +351,7 @@ public:
                                           IKeyValueTreeErrorHandler* errorHandler) const;
 
 private:
-    PrivateImplPointer<internal::KeyValueTreeTransformerImpl> impl_;
+    std::unique_ptr<internal::KeyValueTreeTransformerImpl> impl_;
 };
 
 class IKeyValueTreeBackMapping