Use std::auto_ptr on compilers that do not warn about it
This commit is contained in:
parent
67480c05e3
commit
e6380b11e9
|
@ -14,7 +14,13 @@
|
||||||
|
|
||||||
#include <cmConfigure.h>
|
#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
|
#define CM_AUTO_PTR cm::auto_ptr
|
||||||
|
|
||||||
// The HP compiler cannot handle the conversions necessary to use
|
// The HP compiler cannot handle the conversions necessary to use
|
||||||
|
@ -219,3 +225,5 @@ public:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue