diff --git a/test/Jamfile b/test/Jamfile index 9535585..70f0bd7 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -85,7 +85,7 @@ test-suite phoenix_scope : [ run scope/let_tests.cpp ] [ run scope/dynamic_tests.cpp ] [ run scope/bug3289.cpp ] -# [ run scope/bug_000008.cpp : : : $(multi-threading) ] + [ run scope/bug_000008.cpp : : : $(multi-threading) ] ; test-suite phoenix_algorithm : diff --git a/test/scope/bug_000008.cpp b/test/scope/bug_000008.cpp index cd524d1..de39398 100644 --- a/test/scope/bug_000008.cpp +++ b/test/scope/bug_000008.cpp @@ -11,11 +11,13 @@ // for a description of the bug being tested for by this program // // This code is borrowed from Spirit's bug_000008.cpp test for multithreads. + // Now modified to point to the Phoenix headers + // instead of the ones in Spirit. #include #include #include #include -#include +#include #if defined(DONT_HAVE_BOOST) \ || !defined(BOOST_HAS_THREADS) \ @@ -42,15 +44,16 @@ main() #else // the real MT stuff -#include -#include +#include +#include #include static const int number_of_calls_per_thread=20000; struct test_dynamic : boost::phoenix::dynamic { - test_dynamic() : b(*this) {} + // test_dynamic() : b(*this) {} + test_dynamic() : b(init<0>(this)) {} member1 b; };