Made regex_error backwards compatible with Boost-1.32.

[SVN r30623]
This commit is contained in:
John Maddock
2005-08-22 10:56:15 +00:00
parent 233f083720
commit d3a9bbfabd
3 changed files with 9 additions and 3 deletions

View File

@ -40,7 +40,7 @@ namespace boost{
class BOOST_REGEX_DECL regex_error : public std::runtime_error
{
public:
explicit regex_error(const std::string& s, regex_constants::error_type err, std::ptrdiff_t pos);
explicit regex_error(const std::string& s, regex_constants::error_type err = regex_constants::error_unknown, std::ptrdiff_t pos = 0);
explicit regex_error(regex_constants::error_type err);
~regex_error() throw();
regex_constants::error_type code()const