From b5be78d07ebcfd10ee0d5a6ff9fb4886d23d80e9 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 7 Sep 2020 18:32:32 +0300 Subject: [PATCH] Work around msvc-14.0 crash --- test/lambda2_test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/lambda2_test.cpp b/test/lambda2_test.cpp index 08eef81..c3c85f4 100644 --- a/test/lambda2_test.cpp +++ b/test/lambda2_test.cpp @@ -47,5 +47,14 @@ int main() TEST_BINARY(^) TEST_UNARY(~) +#if defined(_MSC_VER) && _MSC_VER == 1900 && !defined(_DEBUG) + + // prevents crash in TEST_BINARY(/) + // no idea why + + BOOST_TEST_EQ( (_1 / _2)( 0, 1 ), 0 / 1 ); + +#endif + return boost::report_errors(); }