Homec4science

Minimal changes to fix build failures on Microsoft Visual Studio 2015

Authored by Dan Kegel <dank@kegel.com> on Mar 2 2017, 01:44.

Description

Minimal changes to fix build failures on Microsoft Visual Studio 2015

Fixes the following errors:

hash_map(17): error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning. [googlemock\gtest\gtest-printers_test.vcxproj]
hash_set(17): error C2338: <hash_set> is deprecated and will be REMOVED. Please use <unordered_set>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning. [googlemock\gtest\gtest-printers_test.vcxproj]
googletest\test\gtest_catch_exceptions_test_.cc(152): error C2220: warning treated as error - no 'object' file generated
googletest\test\gtest_catch_exceptions_test_.cc(152): warning C4297: 'CxxExceptionInDestructorTest::~CxxExceptionInDestructorTest': function assumed not to throw an exception but does

googletest\test\gtest_catch_exceptions_test_.cc(152): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification

There were already some checks for _MSC_VER in the code, so this commit
continues in that vein.

Details

Committed
Dan Kegel <dank@kegel.com>Mar 2 2017, 03:40
Pushed
trottetDec 4 2019, 13:52
Parents
R9484:aa148eb2b7f7: Merge pull request #1029 from google/BillyDonahue-patch-3
Branches
Unknown
Tags
Unknown

Event Timeline

Dan Kegel <dank@kegel.com> committed R9484:518e0519ca49: Minimal changes to fix build failures on Microsoft Visual Studio 2015 (authored by Dan Kegel <dank@kegel.com>).Mar 2 2017, 03:40