forked from boostorg/fusion
Suppress warnings.
This commit is contained in:
@ -65,8 +65,8 @@ main()
|
||||
std::cout << pop_back(sv) << std::endl;
|
||||
|
||||
// Compile check only
|
||||
begin(pop_back(sv)) == end(sv);
|
||||
end(pop_back(sv)) == begin(sv);
|
||||
(void)(begin(pop_back(sv)) == end(sv));
|
||||
(void)(end(pop_back(sv)) == begin(sv));
|
||||
}
|
||||
|
||||
// $$$ JDG: TODO add compile fail facility $$$
|
||||
|
@ -164,9 +164,11 @@ void test()
|
||||
|
||||
BOOST_STATIC_ASSERT((is_same<boost::fusion::result_of::deref<i0>::type, int&>::value));
|
||||
BOOST_STATIC_ASSERT((is_same<boost::fusion::result_of::deref<i1>::type, char&>::value));
|
||||
BOOST_STATIC_ASSERT((is_same<boost::fusion::result_of::deref<i2>::type, char&>::value));
|
||||
|
||||
BOOST_STATIC_ASSERT((is_same<boost::fusion::result_of::value_of<i0>::type, int>::value));
|
||||
BOOST_STATIC_ASSERT((is_same<boost::fusion::result_of::value_of<i1>::type, char&>::value));
|
||||
BOOST_STATIC_ASSERT((is_same<boost::fusion::result_of::value_of<i2>::type, char&>::value));
|
||||
}
|
||||
|
||||
{ // Testing advance
|
||||
|
@ -111,6 +111,7 @@ main()
|
||||
pair<int, char> a = at_c<0>(m); (void) a;
|
||||
pair<double, std::string> b = at_c<1>(m);
|
||||
pair<abstract, int> c = at_c<2>(m);
|
||||
(void)c;
|
||||
}
|
||||
|
||||
// iterators & random access interface.
|
||||
@ -154,6 +155,7 @@ main()
|
||||
// make sure that the correct constructor is called
|
||||
pair<int, copy_all> p1;
|
||||
pair<int, copy_all> p2 = p1;
|
||||
(void)p2;
|
||||
}
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user