
11 Oct
2009
11 Oct
'09
7:15 a.m.
What's wrong with this ? template<class Expected, class T> void check_placeholders(const T&) { BOOST_MPL_ASSERT((is_same<typename T::placeholders, Expected>)); // * } struct Test { typedef int placeholders; }; void f() { check_placeholders<int>(Test()); } msvc9 complains about : error C2059: syntax error : ')' at the line marked with a star. I have put much more complex things inside BOOST_MPL_ASSERT though :-/ I use Boost 1.40. J-L