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

New commits:
commit 292026e36ce5b9ebdad86e99304be2ded8c199d8
Author: Markus Mohrhard <[email protected]>
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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to