Define traits::is_view for non fusion types

This commit is contained in:
Nikita Kniazev
2018-08-03 00:24:10 +03:00
parent b8fafe04d9
commit b0f0882229
39 changed files with 66 additions and 0 deletions

View File

@ -44,6 +44,7 @@ main()
{
typedef std::pair<int, std::string> pair_type;
BOOST_MPL_ASSERT_NOT((traits::is_view<pair_type>));
BOOST_STATIC_ASSERT(!traits::is_view<pair_type>::value);
pair_type p(123, "Hola!!!");
std::cout << at_c<0>(p) << std::endl;