Subject: [Boost-bugs] [Boost C++ Libraries] #1749: regex_match on filesystem iterator.leaf () leads to strange results in what[]
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-01 22:29:36
#1749: regex_match on filesystem iterator.leaf () leads to strange results in
what[]
-----------------------------------------+----------------------------------
Reporter: christopher.lang_at_[hidden] | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: | Component: regex
Version: | Severity: Problem
Keywords: filesystem path iterator |
-----------------------------------------+----------------------------------
Code fragment:
{{{
boost::smatch what;
boost::regex e ("^(tty:)(tty.+)$");
for (fs::directory_iterator itr_l2 (*itr_l1); itr_l2 != end_itr; ++itr_l2)
{
...
match = boost::regex_match ((*itr_l2).leaf(), what, e);
leads to incorrect results in what[0], what[1]... when match occurs.
}}}
libboost_filesystem.so.1.33.1
libboost_regex.so.1.33.1
Suse 10.1
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1749>
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:49:57 UTC