Subject: [Boost-bugs] [Boost C++ Libraries] #6716: Unexpected behaviour when constructing iterator_range from string literal
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-20 14:20:44
#6716: Unexpected behaviour when constructing iterator_range from string literal
------------------------------------------------------+---------------------
Reporter: Olaf van der Spek <olafvdspek@â¦> | Owner: neilgroves
Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
Version: Boost 1.48.0 | Severity: Problem
Keywords: |
------------------------------------------------------+---------------------
This behaviour is unexpected. Either don't provide automatic construction
from string literals or ensure it works as expected.
{{{
#include <boost/range/iterator_range.hpp>
#include <string>
int main()
{
std::string s = "Olaf";
boost::iterator_range<const char*> r(s.data(), s.data() +
s.size());
assert(r == s);
assert(r == "Olaf");
return 0;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6716> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC