diff --git a/test/compliant/test_compliant.cpp b/test/compliant/test_compliant.cpp index 9428dae..6a25df6 100755 --- a/test/compliant/test_compliant.cpp +++ b/test/compliant/test_compliant.cpp @@ -1,3 +1,5 @@ +#pragma warning(disable:4512) + #include #include "spirit/register.hpp" @@ -13,7 +15,9 @@ void test_lambda() BOOST_AUTO(fun, _1 > 15 && _2 < 20); int n = 19; - //assert(fun(n, n)); + + if (!fun(n, n)) + throw 0; std::cout << typeid(fun).name() << std::endl; } @@ -54,7 +58,8 @@ void test_spirit2() "/*this is a comment*/\n//this is a c++ comment\n\n", *skipper).full; - //assert(success); + if (!success) + throw 0; } diff --git a/test/compliant/typeof.vcproj b/test/compliant/typeof.vcproj index 7a14b04..b18137e 100755 --- a/test/compliant/typeof.vcproj +++ b/test/compliant/typeof.vcproj @@ -25,7 +25,8 @@ BasicRuntimeChecks="3" RuntimeLibrary="5" UsePrecompiledHeader="0" - WarningLevel="3" + WarningLevel="4" + WarnAsError="TRUE" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="4"/> ::value); BOOST_STATIC_ASSERT(typeof_test::value); +#pragma message("function references...") +BOOST_STATIC_ASSERT(typeof_test::value); + #pragma message("member functions...") BOOST_STATIC_ASSERT(typeof_test::value); BOOST_STATIC_ASSERT(typeof_test::value); @@ -78,7 +81,6 @@ BOOST_STATIC_ASSERT(typeof_test::value); BOOST_STATIC_ASSERT(typeof_test::value); BOOST_STATIC_ASSERT(typeof_test::value); -//BOOST_STATIC_ASSERT(typeof_test::value); #pragma message("data members...") BOOST_STATIC_ASSERT(typeof_test::value); @@ -130,6 +132,7 @@ struct noncopiable_test #else BOOST_AUTO(const& v, foo()); #endif + v; // to avoid warning } };