Skip to content

Commit b5be78d

Browse files
committed
Work around msvc-14.0 crash
1 parent 363d73d commit b5be78d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/lambda2_test.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,14 @@ int main()
4747
TEST_BINARY(^)
4848
TEST_UNARY(~)
4949

50+
#if defined(_MSC_VER) && _MSC_VER == 1900 && !defined(_DEBUG)
51+
52+
// prevents crash in TEST_BINARY(/)
53+
// no idea why
54+
55+
BOOST_TEST_EQ( (_1 / _2)( 0, 1 ), 0 / 1 );
56+
57+
#endif
58+
5059
return boost::report_errors();
5160
}

0 commit comments

Comments
 (0)