summaryrefslogtreecommitdiff
path: root/examples/cppunittest/ExceptionTest.cpp
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 /examples/cppunittest/ExceptionTest.cpp
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 'examples/cppunittest/ExceptionTest.cpp')
-rw-r--r--examples/cppunittest/ExceptionTest.cpp4
1 files changed, 2 insertions, 2 deletions
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 <cppunit/portability/SmartPtr.h>
#include <cppunit/Exception.h>
-#include <memory>
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<CPPUNIT_NS::Exception> other( e.clone() );
+ CppUnitSmartPtr<CPPUNIT_NS::Exception> other( e.clone() );
checkIsSame( e, *other.get() );
}