Section no longer relies on copy-elision for correctness

- should address #293
- *may* address #271
This commit is contained in:
Phil Nash 2014-07-09 07:39:57 +01:00
parent a469d9bc0f
commit 23181eeef0
7 changed files with 36 additions and 29 deletions

View file

@ -387,7 +387,7 @@ TEST_CASE( "pointer to class", "[Tricky]" )
#include <memory>
TEST_CASE( "null_ptr", "[Tricky]" )
TEST_CASE( "null_ptr", "[Tricky][c++11]" )
{
std::unique_ptr<int> ptr;
REQUIRE(ptr.get() == nullptr);