Merge [81027] from the trunk.

[SVN r84442]
This commit is contained in:
Steven Watanabe
2013-05-23 14:38:22 +00:00
parent 161b05edfb
commit 6e78a8f0f4
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;