Index: dynamic.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/xpressive/detail/dynamic/dynamic.hpp,v retrieving revision 1.4 diff -b -d -u -r1.4 dynamic.hpp --- dynamic.hpp 2 Jan 2006 07:01:35 -0000 1.4 +++ dynamic.hpp 7 Jun 2007 22:54:47 -0000 @@ -130,7 +130,7 @@ bool is_quantifiable() const { - return quant_type::value != (int)quant_none; + return quant_type::value != (int)quant_none || this->next_ != get_invalid_xpression(); } private: @@ -316,16 +316,16 @@ template inline sequence dynamic_xpression::quantify_ ( - quant_spec const & - , std::size_t & - , sequence + quant_spec const &spec + , std::size_t &hidden_mark_count + , sequence seq , mpl::int_ - , alternates_factory const & + , alternates_factory const &factory , void const * ) const { - BOOST_ASSERT(false); // should never get here - throw regex_error(regex_constants::error_badrepeat, "expression cannot be quantified"); + BOOST_ASSERT(this->next_ != get_invalid_xpression()); + return this->quantify_(spec, hidden_mark_count, seq, mpl::int_(), factory, this); } // fixed-width matchers