mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
Supply missing #include. Rewrite typedef tests to avoid GCC warnings.
This commit is contained in:
parent
270a6c39b5
commit
904e2c3c81
@ -27,6 +27,7 @@
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <iosfwd>
|
||||
|
||||
namespace boost {
|
||||
@ -129,7 +130,7 @@ namespace boost {
|
||||
len_ -= n;
|
||||
}
|
||||
|
||||
BOOST_CONSTEXPR void swap(basic_string_view& s) BOOST_NOEXCEPT {
|
||||
/*BOOST_CONSTEXPR*/ void swap(basic_string_view& s) BOOST_NOEXCEPT {
|
||||
std::swap(ptr_, s.ptr_);
|
||||
std::swap(len_, s.len_);
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user