use std::unique_ptr instead of std::auto_ptr with C++11 or newer compilers to avoid std::auto_ptr deprecation warnings

This commit is contained in:
Guenter Obiltschnig
2016-10-14 12:01:25 +02:00
parent 6195c97a86
commit 8293f93f7a
5 changed files with 20 additions and 0 deletions

View File

@@ -89,7 +89,11 @@ protected:
private:
TestMethod _test;
#if __cplusplus < 201103L
std::auto_ptr<Fixture> _fixture;
#else
std::unique_ptr<Fixture> _fixture;
#endif
};