Suppress warnings.

This commit is contained in:
Kohei Takahashi
2015-06-08 21:41:54 +09:00
parent ff25066be2
commit 3521ea3417
3 changed files with 6 additions and 2 deletions

View File

@ -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 $$$

View File

@ -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

View File

@ -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;
}
{