Merge pull request #42 from igaztanaga/patch-1

_set_abort_behavior not supported in old MSVC
This commit is contained in:
Andrey Semashev
2018-10-12 14:12:33 +03:00
committed by GitHub

View File

@ -47,7 +47,7 @@ public:
test_result()
: report_(false)
, errors_(0) {
#if defined(_MSC_VER)
#if defined(_MSC_VER) && (_MSC_VER > 1310)
::_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
#endif
}