From 897c0bdac3d80a6e86bbb394e79fc71bdfe2ab4f Mon Sep 17 00:00:00 2001 From: mat007 Date: Thu, 29 May 2014 10:17:08 +0000 Subject: [PATCH] Deactivated ICE producing code git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@747 860be788-9bd5-4423-9f1e-828f051e677b --- build/boost/doc/example/reference.cpp | 4 ++++ test/test_log.cpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/build/boost/doc/example/reference.cpp b/build/boost/doc/example/reference.cpp index 258112c..2665b89 100644 --- a/build/boost/doc/example/reference.cpp +++ b/build/boost/doc/example/reference.cpp @@ -631,6 +631,8 @@ BOOST_AUTO_TEST_CASE( demonstrates_adding_a_custom_constraint_with_boost_bind ) //] } +#ifndef BOOST_MSVC // this produces an ICE with all versions of MSVC + #include namespace constraints_example_5 @@ -649,6 +651,8 @@ BOOST_AUTO_TEST_CASE( demonstrates_adding_a_custom_constraint_with_boost_lambda //] } +#endif // BOOST_MSVC + #include namespace constraints_example_6 diff --git a/test/test_log.cpp b/test/test_log.cpp index 8d70159..b8b44f0 100644 --- a/test/test_log.cpp +++ b/test/test_log.cpp @@ -17,8 +17,10 @@ #endif #include #include +#ifndef BOOST_MSVC // this produces an ICE with all versions of MSVC #include #include +#endif #ifdef BOOST_MSVC #pragma warning( pop ) #endif @@ -647,12 +649,16 @@ BOOST_AUTO_TEST_CASE( boost_bind_functor_yields_question_mark_when_serialized ) BOOST_CHECK_EQUAL( "?", to_string( boost::bind( &some_function ) ) ); } +#ifndef BOOST_MSVC // this produces an ICE with all versions of MSVC + BOOST_AUTO_TEST_CASE( boost_lambda_functor_yields_question_mark_when_serialized ) { BOOST_CHECK_EQUAL( "?", to_string( boost::lambda::bind( &some_function ) ) ); BOOST_CHECK_EQUAL( "?", to_string( boost::lambda::_1 < 42 ) ); } +#endif + #ifdef MOCK_NULLPTR BOOST_AUTO_TEST_CASE( nullptr_is_serialized )