Boost logo

Boost Users :

From: reecky (reecky_at_[hidden])
Date: 2005-07-24 22:21:44

when I have built the Boost.Regex libarary,and then I tested the
samples of the regex. Then I found the credit_card_example correct while
the capture_example error.
Fistly, the capture_example compiled with the error the .captures(i) is
not the member function of the match_results, then I found the source
file of match_results.hpp and found this MACRO as below:
typedef typename sub_match<BidiIterator>::capture_sequence_type

const capture_sequence_type& captures(int i)const
return (*this)[i].captures();
so I defined the macro BOOST_REGEX_MATCH_EXTRA, then it compiled successful.
but the error occured when I runned the program. the memory leak and
system dead.
so I wondered what's mean of the BOOST_REGEX_MATCH_EXTRA?

many thanks for you.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at