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. --- examples/cppunittest/ExceptionTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/cppunittest/ExceptionTest.cpp') diff --git a/examples/cppunittest/ExceptionTest.cpp b/examples/cppunittest/ExceptionTest.cpp index 31dce64..856f561 100644 --- a/examples/cppunittest/ExceptionTest.cpp +++ b/examples/cppunittest/ExceptionTest.cpp @@ -1,7 +1,7 @@ #include "CoreSuite.h" #include "ExceptionTest.h" +#include #include -#include CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ExceptionTest, @@ -79,7 +79,7 @@ ExceptionTest::testClone() { CPPUNIT_NS::SourceLine sourceLine( "fileName.cpp", 123 ); CPPUNIT_NS::Exception e( CPPUNIT_NS::Message("message"), sourceLine ); - std::auto_ptr other( e.clone() ); + CppUnitSmartPtr other( e.clone() ); checkIsSame( e, *other.get() ); } -- cgit v1.2.1