From 132828a8db4eeab08c4c58f2162d93bbdafd9593 Mon Sep 17 00:00:00 2001 From: Neil Groves Date: Mon, 3 Mar 2014 00:26:22 +0000 Subject: [PATCH] make msvc happy with the ticket 6715 test case. --- test/ticket_6715_iterator_range_equality.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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); } }