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

@ -42,7 +42,10 @@
repeat more times than their maximum value.</LI> repeat more times than their maximum value.</LI>
<LI> <LI>
Fixed the value returned by basic_regex&lt;&gt;::empty() from a default Fixed the value returned by basic_regex&lt;&gt;::empty() from a default
constructed object.</LI></UL> constructed object.</LI>
<LI>
Changed the deffinition of regex_error to make it backwards compatible with
Boost-1.32.0.</LI></UL>
<P>Boost 1.33.0.</P> <P>Boost 1.33.0.</P>
<UL> <UL>
<LI> <LI>

View File

@ -42,7 +42,10 @@
repeat more times than their maximum value.</LI> repeat more times than their maximum value.</LI>
<LI> <LI>
Fixed the value returned by basic_regex&lt;&gt;::empty() from a default Fixed the value returned by basic_regex&lt;&gt;::empty() from a default
constructed object.</LI></UL> constructed object.</LI>
<LI>
Changed the deffinition of regex_error to make it backwards compatible with
Boost-1.32.0.</LI></UL>
<P>Boost 1.33.0.</P> <P>Boost 1.33.0.</P>
<UL> <UL>
<LI> <LI>

View File

@ -40,7 +40,7 @@ namespace boost{
class BOOST_REGEX_DECL regex_error : public std::runtime_error class BOOST_REGEX_DECL regex_error : public std::runtime_error
{ {
public: 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); explicit regex_error(regex_constants::error_type err);
~regex_error() throw(); ~regex_error() throw();
regex_constants::error_type code()const regex_constants::error_type code()const