Boost logo

Boost Users :

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


hi,
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:
#ifdef BOOST_REGEX_MATCH_EXTRA
typedef typename sub_match<BidiIterator>::capture_sequence_type
capture_sequence_type;

const capture_sequence_type& captures(int i)const
{
return (*this)[i].captures();
}
#endif
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.
leecky
2005.7.25


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net