diff --git a/test/ticket_6715_iterator_range_equality.cpp b/test/ticket_6715_iterator_range_equality.cpp index 0ca1d42..96a61a9 100644 --- a/test/ticket_6715_iterator_range_equality.cpp +++ b/test/ticket_6715_iterator_range_equality.cpp @@ -12,6 +12,7 @@ #include #include +#include namespace boost { @@ -19,12 +20,18 @@ namespace boost { class str_ref : public boost::iterator_range { + public: + explicit str_ref(const std::string& str) + : boost::iterator_range( + str.c_str(), str.c_str() + str.size()) + { + } }; - + void test_ticket_6715_iterator_range_equality() { - str_ref a; - str_ref b; + str_ref a("test"); + str_ref b("test"); BOOST_CHECK(a == b); } }