diff options
Diffstat (limited to 'boost/xpressive/detail/dynamic/parser_traits.hpp')
-rw-r--r-- | boost/xpressive/detail/dynamic/parser_traits.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/boost/xpressive/detail/dynamic/parser_traits.hpp b/boost/xpressive/detail/dynamic/parser_traits.hpp index 6c3e152cac..ab2544c4af 100644 --- a/boost/xpressive/detail/dynamic/parser_traits.hpp +++ b/boost/xpressive/detail/dynamic/parser_traits.hpp @@ -9,12 +9,13 @@ #define BOOST_XPRESSIVE_DETAIL_DYNAMIC_PARSER_TRAITS_HPP_EAN_10_04_2005 // MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#if defined(_MSC_VER) # pragma once #endif #include <string> #include <climits> +#include <boost/config.hpp> #include <boost/assert.hpp> #include <boost/throw_exception.hpp> #include <boost/xpressive/regex_error.hpp> @@ -394,9 +395,9 @@ private: case BOOST_XPR_CHAR_(char_type, 'm'): this->flag_(!set, single_line); break; case BOOST_XPR_CHAR_(char_type, 's'): this->flag_(!set, not_dot_newline); break; case BOOST_XPR_CHAR_(char_type, 'x'): this->flag_(set, ignore_white_space); break; - case BOOST_XPR_CHAR_(char_type, ':'): ++begin; // fall-through + case BOOST_XPR_CHAR_(char_type, ':'): ++begin; BOOST_FALLTHROUGH; case BOOST_XPR_CHAR_(char_type, ')'): return token_no_mark; - case BOOST_XPR_CHAR_(char_type, '-'): if(false == (set = !set)) break; // else fall-through + case BOOST_XPR_CHAR_(char_type, '-'): if(false == (set = !set)) break; BOOST_FALLTHROUGH; default: BOOST_THROW_EXCEPTION(regex_error(error_paren, "unknown pattern modifier")); } while(BOOST_XPR_ENSURE_(++begin != end, error_paren, "incomplete extension")); |