Subject: [Boost-bugs] [Boost C++ Libraries] #8708: surprising element segmentation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-19 03:18:49
#8708: surprising element segmentation
------------------------------+------------------------
Reporter: dave | Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.52.0 | Severity: Problem
Keywords: |
------------------------------+------------------------
I was shocked today to find that this fails:
{{{#!cpp
assert(
boost::starts_with(
boost::filesystem::path("/website/public_html/"),
boost::filesystem::path("/website/")));
}}}
The reason is that the 2nd path has 3 elements, {{{"/"}}},
{{{"website"}}}, and {{{"."}}}. I found that last one especially
surprising.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8708> 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:13 UTC