summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-23 19:56:34 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-26 13:03:46 (GMT)
commite6380b11e9d900c9b60ad6fbd46171092bf0136e (patch)
tree6211756d1bdc3bcf8556391ae457a4a2e767126d /Source
parent67480c05e3f6819d867680775ca0cbc6f03f28da (diff)
downloadCMake-e6380b11e9d900c9b60ad6fbd46171092bf0136e.zip
CMake-e6380b11e9d900c9b60ad6fbd46171092bf0136e.tar.gz
CMake-e6380b11e9d900c9b60ad6fbd46171092bf0136e.tar.bz2
Use std::auto_ptr on compilers that do not warn about it
Diffstat (limited to 'Source')
-rw-r--r--Source/cm_auto_ptr.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cm_auto_ptr.hxx b/Source/cm_auto_ptr.hxx
index f6c4362..f38eda5 100644
--- a/Source/cm_auto_ptr.hxx
+++ b/Source/cm_auto_ptr.hxx
@@ -14,7 +14,13 @@
#include <cmConfigure.h>
-// FIXME: Use std::auto_ptr on compilers that do not warn about it.
+#ifdef CMake_HAVE_CXX_AUTO_PTR
+
+#include <memory>
+#define CM_AUTO_PTR std::auto_ptr
+
+#else
+
#define CM_AUTO_PTR cm::auto_ptr
// The HP compiler cannot handle the conversions necessary to use
@@ -219,3 +225,5 @@ public:
#endif
#endif
+
+#endif