9 Oct
2006
9 Oct
'06
2:09 p.m.
Ian McCulloch
If T does not inherit from MessageFactory<T>, the static_cast inside the self() function will not compile. If you wanted a more informative error message, that would be the place to put the STATIC_ASSERT
BOOST_STATIC_ASSERT doesn't give informative messages. Use BOOST_MPL_ASSERT instead :) -- Dave Abrahams Boost Consulting www.boost-consulting.com