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/msvc6/HostApp/ExampleTestCase.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'examples/msvc6/HostApp/ExampleTestCase.cpp') diff --git a/examples/msvc6/HostApp/ExampleTestCase.cpp b/examples/msvc6/HostApp/ExampleTestCase.cpp index ec13319..727fd30 100644 --- a/examples/msvc6/HostApp/ExampleTestCase.cpp +++ b/examples/msvc6/HostApp/ExampleTestCase.cpp @@ -1,4 +1,5 @@ #include "ExampleTestCase.h" +#include CPPUNIT_TEST_SUITE_REGISTRATION( ExampleTestCase ); @@ -31,14 +32,14 @@ void ExampleTestCase::testAdd () void ExampleTestCase::testEquals () { - std::auto_ptr l1 (new long (12)); - std::auto_ptr l2 (new long (12)); + CppUnitSmartPtr l1 (new long (12)); + CppUnitSmartPtr l2 (new long (12)); CPPUNIT_ASSERT_EQUAL (12, 12); CPPUNIT_ASSERT_EQUAL (12L, 12L); CPPUNIT_ASSERT_EQUAL (*l1, *l2); - CPPUNIT_ASSERT (12L == 12L); - CPPUNIT_ASSERT_EQUAL (12, 13); - CPPUNIT_ASSERT_DOUBLES_EQUAL (12.0, 11.99, 0.5); + CPPUNIT_ASSERT (12L == 12L); + CPPUNIT_ASSERT_EQUAL (12, 13); + CPPUNIT_ASSERT_DOUBLES_EQUAL (12.0, 11.99, 0.5); } -- cgit v1.2.1