Remove PrivateImplPointer in favour of std::unique_ptr
[alexxy/gromacs.git] / src / gromacs / utility / filestream.h
index 5309fb217822938478e17823ab2d83c415584649..9e24a1c8d2d5f193f9d5936764fa70bdea69ba34 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2015,2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2015,2018,2019,2020,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.
@@ -45,9 +45,9 @@
 
 #include <cstdio>
 
+#include <memory>
 #include <string>
 
-#include "gromacs/utility/classhelpers.h"
 #include "gromacs/utility/fileptr.h"
 #include "gromacs/utility/textstream.h"
 
@@ -142,7 +142,7 @@ public:
     void close() override;
 
 private:
-    PrivateImplPointer<internal::FileStreamImpl> impl_;
+    std::unique_ptr<internal::FileStreamImpl> impl_;
 };
 
 /*! \libinternal \brief
@@ -181,7 +181,7 @@ public:
     static TextOutputFile& standardError();
 
 private:
-    PrivateImplPointer<internal::FileStreamImpl> impl_;
+    std::unique_ptr<internal::FileStreamImpl> impl_;
 };
 
 } // namespace gmx