[Libreoffice-commits] cppunit.git: include/cppunit

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Nov 8 16:27:24 PST 2015


 include/cppunit/portability/SmartPtr.h |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 292026e36ce5b9ebdad86e99304be2ded8c199d8
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Nov 8 07:26:23 2015 -0800

    fix --disable-optional-features build
    
    Use std::auto_ptr in C++03 mode.

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


More information about the Libreoffice-commits mailing list