From 292026e36ce5b9ebdad86e99304be2ded8c199d8 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 8 Nov 2015 07:26:23 -0800 Subject: fix --disable-optional-features build Use std::auto_ptr in C++03 mode. --- include/cppunit/portability/SmartPtr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cppunit') diff --git a/include/cppunit/portability/SmartPtr.h b/include/cppunit/portability/SmartPtr.h index 76e2183..5fa9c9d 100644 --- a/include/cppunit/portability/SmartPtr.h +++ b/include/cppunit/portability/SmartPtr.h @@ -1,6 +1,10 @@ #ifndef CPPUNIT_PORTABILITY_CPPUNITSMARTPTR_H #define CPPUNIT_PORTABILITY_CPPUNITSMARTPTR_H +#if HAVE_CXX11 #define CppUnitSmartPtr std::unique_ptr +#else +#define CppUnitSmartPtr std::auto_ptr +#endif #endif // CPPUNIT_PORTABILITY_CPPUNITDEQUE_H -- cgit v1.2.1