Opened 9 years ago

#8708 new Bugs

surprising element segmentation

Reported by: Dave Abrahams Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

I was shocked today to find that this fails:

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.

Change History (0)

Note: See TracTickets for help on using tickets.