Supply missing #include. Rewrite typedef tests to avoid GCC warnings.

This commit is contained in:
Beman
2015-07-15 16:15:23 -04:00
parent 270a6c39b5
commit 904e2c3c81
2 changed files with 5 additions and 3 deletions

View File

@@ -464,8 +464,9 @@ namespace
int cpp_main(int argc, char* argv[])
{
typedef boost::string_view::traits_type string_traits;
typedef boost::string_view::const_pointer const_pointer;
// verify traits_type and const_pointer typedefs compile OK
BOOST_TEST(boost::string_view::traits_type::eq('x', 'x'));
BOOST_TEST_EQ(sizeof(boost::string_view::const_pointer), sizeof(&argc));
swap_test();
copy_test();