mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-16 05:42:20 +02:00
Fusion/Spirit: adt_attribute_proxy refactorization
[SVN r65445]
This commit is contained in:
@ -28,6 +28,7 @@
|
||||
#include <boost/mpl/front.hpp>
|
||||
#include <boost/mpl/is_sequence.hpp>
|
||||
#include <boost/mpl/assert.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
@ -174,6 +175,29 @@ main()
|
||||
}
|
||||
#endif
|
||||
|
||||
{
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<
|
||||
result_of::front<ns::point>::type,
|
||||
boost::fusion::extension::adt_attribute_proxy<ns::point,0,false>
|
||||
>));
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<
|
||||
result_of::front<ns::point>::type::type,
|
||||
int
|
||||
>));
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<
|
||||
result_of::front<ns::point const>::type,
|
||||
boost::fusion::extension::adt_attribute_proxy<ns::point,0,true>
|
||||
>));
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<
|
||||
result_of::front<ns::point const>::type::type,
|
||||
int
|
||||
>));
|
||||
}
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user