
Jeremy Pack wrote:
I've been getting the same problem - the following code reproduces it on an Intel mac:
// Copyright 2007 Jeremy Pack // All rights reserved
#define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK 1 #include <boost/test/unit_test.hpp> #include <iostream>
// #include "../src/paf_ged_loader.hpp" // #include "../src/repository.hpp" #include <boost/regex.hpp>
BOOST_AUTO_TEST_CASE(regex) { boost::regex i("test"); std::string s("test"); boost::smatch match; boost::regex_match(s, match, i); }
The system_error seems to be thrown at the call to regex_match.
This is very strange - especially as regex makes no use of Boost.Test internally - I don't see how a call into the regex lib can result in Boost.Test throwing ! Are you able to trap the point at which the exception is thrown (gdb has an option to break on a throw exception I believe): what we really need to determine is the code that triggers this. Many thanks, John Maddock.