mirror of
https://github.com/boostorg/container.git
synced 2026-07-10 09:40:51 +02:00
Closes #58 ("Comparing strings does not compile in gcc 7+ in C++17 mode")
This commit is contained in:
@@ -24,8 +24,10 @@
|
||||
#include "expand_bwd_test_template.hpp"
|
||||
#include "propagate_allocator_test.hpp"
|
||||
#include "default_init_test.hpp"
|
||||
#include "comparison_test.hpp"
|
||||
#include "../../intrusive/test/iterator_test.hpp"
|
||||
#include <boost/utility/string_view.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
using namespace boost::container;
|
||||
|
||||
@@ -507,8 +509,10 @@ struct alloc_propagate_base<boost_container_string>
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
}}} //namespace boost::container::test
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
if(string_test<char>()){
|
||||
@@ -558,6 +562,16 @@ int main()
|
||||
boost::intrusive::test::test_iterator_random< cont_int >(a);
|
||||
}
|
||||
|
||||
////////////////////////////////////
|
||||
// Comparison testing
|
||||
////////////////////////////////////
|
||||
{
|
||||
if(!boost::container::test::test_container_comparisons<string>())
|
||||
return 1;
|
||||
if(!boost::container::test::test_container_comparisons<wstring>())
|
||||
return 1;
|
||||
}
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user