[Boost-bugs] [Boost C++ Libraries] #4641: regex_match return true but match_results contain empty entries

Subject: [Boost-bugs] [Boost C++ Libraries] #4641: regex_match return true but match_results contain empty entries
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-10 10:49:33


#4641: regex_match return true but match_results contain empty entries
-----------------------------------+----------------------------------------
 Reporter: jannich@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.44.0 | Severity: Showstopper
 Keywords: |
-----------------------------------+----------------------------------------
 Hi,
 Just found a problem with regex when upgrading to boost 1.44.0. Seems like
 regex_match can return true and match_results contain the correct number
 of entries, but they are all empty.

 I downloaded and compiled 1.44.0 on Ubuntu 8.04 using gcc 4.1.3 using the
 following cmd: ./bootstrap.sh --with-libraries=serialization,regex
 --includedir=/usr/include --libdir=/usr/lib; bjam

 Attached is a small testcase extracted from our code base, which gives the
 following result when compiled and executed:

 4 >< >< ><
 terminate called after throwing an instance of
 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast>
>'
   what(): bad lexical cast: source type value could not be interpreted as
 target
 Aborted

 Thanks and regards
 Jannich

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4641>
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:04 UTC