From 5cb290d77a3539a492eac43202f27ecd150c99a0 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 7 Nov 2015 05:41:20 -0800 Subject: add a flag for adding optional features These features will switch the used C++ version from C++03 to C++11. We are also going to use std::unique_ptr instead of std::auto_ptr for the c++11 mode. --- include/cppunit/portability/Makefile.am | 3 ++- include/cppunit/portability/SmartPtr.h | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 include/cppunit/portability/SmartPtr.h (limited to 'include/cppunit') diff --git a/include/cppunit/portability/Makefile.am b/include/cppunit/portability/Makefile.am index 73a0410..8311d00 100644 --- a/include/cppunit/portability/Makefile.am +++ b/include/cppunit/portability/Makefile.am @@ -7,4 +7,5 @@ libcppunitinclude_HEADERS = \ CppUnitStack.h \ CppUnitVector.h \ FloatingPoint.h \ - Stream.h + Stream.h \ + SmartPtr.h diff --git a/include/cppunit/portability/SmartPtr.h b/include/cppunit/portability/SmartPtr.h new file mode 100644 index 0000000..76e2183 --- /dev/null +++ b/include/cppunit/portability/SmartPtr.h @@ -0,0 +1,6 @@ +#ifndef CPPUNIT_PORTABILITY_CPPUNITSMARTPTR_H +#define CPPUNIT_PORTABILITY_CPPUNITSMARTPTR_H + +#define CppUnitSmartPtr std::unique_ptr + +#endif // CPPUNIT_PORTABILITY_CPPUNITDEQUE_H -- cgit v1.2.1