OSDN Git Service

UnitTests can now compile with C++17
authorGreyMerlin <GreyMerlin7@gmail.com>
Wed, 27 Dec 2017 01:03:42 +0000 (17:03 -0800)
committerGreyMerlin <GreyMerlin7@gmail.com>
Wed, 27 Dec 2017 01:03:42 +0000 (17:03 -0800)
commit2bf7170dde1a3a41235a5c127a878ec2b0b3cce0
treec1eb0ca73199a46cbfbb3c7253d6ad997a53fcc0
parentb4a06f6ca194f4d92ddf2b2506db38454c903baa
UnitTests can now compile with C++17

* The GoogleTest  framework can disable use of the `std::tr1`
class entirely!  This is disabled by specifying
`GTEST_HAS_TR1_TUPLE=0;` in the Preprocessor Definition compilation
property.  The UnitTests project does not use TR1 tuples.

 * The deprecation warnings are to note features scheduled to be
deimplemented in some future C++ standard (possibly as early as
C++20).  They remain valid features in C++17.  These warnings
(and the resulting errors) can be removed by specifying
`_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS;` in the Preprocessor
Definition compilation property.  This allows us to watch and study how
other projects react to the necessary changes (mostly related to
`std::function_name::_Unchecked_Iterators::`).

 * The `GTEST_HAS_TR1_TUPLE=0;` Preprocessor definition is now included
in VS2015 as well, so that both VS2015 and VS2017 are both building
similar software.
Src/Merge.vs2015.vcxproj
Src/Merge.vs2017.vcxproj
Testing/GoogleTest/UnitTests/UnitTests.vs2015.vcxproj
Testing/GoogleTest/UnitTests/UnitTests.vs2017.vcxproj