diff options
| author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-11-08 07:26:23 -0800 |
|---|---|---|
| committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-11-08 07:26:23 -0800 |
| commit | 292026e36ce5b9ebdad86e99304be2ded8c199d8 (patch) | |
| tree | 1b2ce8818b890211b870d121749149a9e2c51774 /include/cppunit | |
| parent | 4b28f0c821bd0ee044cf0a4be1a7270edc9874cb (diff) | |
| download | cppunit-292026e36ce5b9ebdad86e99304be2ded8c199d8.tar.gz | |
fix --disable-optional-features build
Use std::auto_ptr in C++03 mode.
Diffstat (limited to 'include/cppunit')
| -rw-r--r-- | include/cppunit/portability/SmartPtr.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
