Work around VC11 bug when evaluating nested BOOST_MPL_ASSERTs.

[SVN r81027]
This commit is contained in:
Steven Watanabe
2012-10-20 16:43:51 +00:00
parent 7d2a04eea3
commit aa8e43a017
2 changed files with 80 additions and 1 deletions
+11
View File
@@ -71,6 +71,17 @@ struct her
}
};
template<class T>
struct nested : boost::mpl::true_ {
BOOST_MPL_ASSERT(( boost::is_pointer<T*> ));
BOOST_MPL_ASSERT_NOT(( boost::is_same<void,T> ));
BOOST_MPL_ASSERT_RELATION( sizeof(T*), >, 1 );
BOOST_MPL_ASSERT_MSG( true, GLOBAL_SCOPE_ERROR, (int,long) );
};
BOOST_MPL_ASSERT(( nested<int> ));
BOOST_MPL_ASSERT_NOT(( boost::mpl::not_<nested<unsigned> > ));
int main()
{
her<void> h;