$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [mpl] Syntax error with BOOST_MPL_ASSERT
From: Jean-Louis Leroy (jl_at_[hidden])
Date: 2009-10-11 03:15:49
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