Change adapt_assoc_tpl_adt to test type inference from templated type.

This commit is contained in:
Damien Buhl (alias daminetreg)
2014-10-20 21:25:07 +02:00
parent 03ba146d84
commit cfcdbe1195
2 changed files with 33 additions and 22 deletions

View File

@ -26,7 +26,7 @@ namespace ns
struct y_member;
struct z_member;
struct unavailable_member;
struct non_member;
class point
{
@ -141,7 +141,7 @@ main()
BOOST_MPL_ASSERT((boost::fusion::result_of::has_key<ns::point, ns::x_member>));
BOOST_MPL_ASSERT((boost::fusion::result_of::has_key<ns::point, ns::y_member>));
BOOST_MPL_ASSERT((boost::fusion::result_of::has_key<ns::point, ns::z_member>));
BOOST_MPL_ASSERT((boost::mpl::not_<boost::fusion::result_of::has_key<ns::point, ns::unavailable_member> >));
BOOST_MPL_ASSERT((boost::mpl::not_<boost::fusion::result_of::has_key<ns::point, ns::non_member> >));
BOOST_MPL_ASSERT((boost::is_same<boost::fusion::result_of::value_at_key<ns::point, ns::x_member>::type, int>));