Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VS2017 - 15.5.0 kludge for GTest UnitTests
* Using the latest (and just released) version 15.5.0 of VS2017 introduces the following error into the UnitTests project ... "error C4996: 'std::tr1': warning STL4002: The non-Standard std::tr1 namespace and TR1-only machinery are deprecated and will be REMOVED. You can define _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING to acknowledge that you have received this warning. " * MSDN claims that this is a C++17 language standards issue, but I was not able to solve this problem by specifying the use of the C++14 standard language (the Properties control for this is likewise a new feature of version 15.5.0) See... https://docs.microsoft.com/en-us/cpp/cpp-conformance-improvements-2017 * The only simple, short-term solution that I could come up with was to simply follow the suggestion of defining the _SILENCE_TR1_xxx token as given above. * Even though this problem has been discussed in the GoogleTest github forum since at least 6 June, the underlying problem remains un-resolved at this hour ... See google/googletest#1111 See google/googletest#1320 See google/googletest#1311 * I will assume that Google's resolution of this problem will require WinMerge to adopt the newest GoogleTest framework (which is likely a good idea anyway). I will keep an eye on their progress and resolution and advise accordingly. In the meantime, this kludge allows WinMerge's UnitTests project to compile and execute correctly.
- Loading branch information