summaryrefslogtreecommitdiff
path: root/include/cppunit
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-11-07 05:41:20 -0800
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-11-07 06:06:09 -0800
commit5cb290d77a3539a492eac43202f27ecd150c99a0 (patch)
tree794065d4987c1b226209dd30b24830b80a47e6b2 /include/cppunit
parentc5813be8793da22ec25e4dfdf9d6dec43695cbeb (diff)
downloadcppunit-5cb290d77a3539a492eac43202f27ecd150c99a0.tar.gz
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.
Diffstat (limited to 'include/cppunit')
-rw-r--r--include/cppunit/portability/Makefile.am3
-rw-r--r--include/cppunit/portability/SmartPtr.h6
2 files changed, 8 insertions, 1 deletions
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