Added MOCK_NO_AUTO_PTR to deactivate std::auto_ptr support

This commit is contained in:
Mathieu Champlon 2017-03-20 11:43:18 +01:00
parent 238fff3fe2
commit a22ca57253
8 changed files with 29 additions and 3 deletions

View file

@ -11,6 +11,7 @@
#include <turtle/verify.hpp>
#include <turtle/detail/function.hpp>
#include <boost/test/auto_unit_test.hpp>
#include <boost/scoped_ptr.hpp>
namespace
{
@ -89,7 +90,7 @@ BOOST_FIXTURE_TEST_CASE( an_object_is_assignable_by_sharing_its_state, mock_erro
BOOST_FIXTURE_TEST_CASE( an_object_is_copiable_by_sharing_its_state, mock_error_fixture )
{
std::auto_ptr< object > o2( new object );
boost::scoped_ptr< object > o2( new object );
const object o1( *o2 );
mock::detail::function< void() > e;
mock::detail::configure( *o2, e, "instance", MOCK_TYPE_NAME(*o2), "name" );