diff options
Diffstat (limited to 'boost/spirit/home/x3/directive/lexeme.hpp')
-rw-r--r-- | boost/spirit/home/x3/directive/lexeme.hpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/boost/spirit/home/x3/directive/lexeme.hpp b/boost/spirit/home/x3/directive/lexeme.hpp index e5104272f9..ce3a6def80 100644 --- a/boost/spirit/home/x3/directive/lexeme.hpp +++ b/boost/spirit/home/x3/directive/lexeme.hpp @@ -7,10 +7,6 @@ #if !defined(SPIRIT_LEXEME_MARCH_24_2007_0802AM) #define SPIRIT_LEXEME_MARCH_24_2007_0802AM -#if defined(_MSC_VER) -#pragma once -#endif - #include <boost/spirit/home/x3/support/context.hpp> #include <boost/spirit/home/x3/support/unused.hpp> #include <boost/spirit/home/x3/core/skip_over.hpp> @@ -29,7 +25,7 @@ namespace boost { namespace spirit { namespace x3 lexeme_directive(Subject const& subject) : base_type(subject) {} - + template <typename Iterator, typename Context , typename RContext, typename Attribute> typename enable_if<has_skipper<Context>, bool>::type @@ -58,8 +54,6 @@ namespace boost { namespace spirit { namespace x3 , Context const& context, RContext& rcontext, Attribute& attr) const { // no need to pre-skip if skipper is unused - //- x3::skip_over(first, last, context); - return this->subject.parse( first, last , context @@ -74,11 +68,11 @@ namespace boost { namespace spirit { namespace x3 lexeme_directive<typename extension::as_parser<Subject>::value_type> operator[](Subject const& subject) const { - return {as_parser(subject)}; + return { as_parser(subject) }; } }; - lexeme_gen const lexeme = lexeme_gen(); + auto const lexeme = lexeme_gen{}; }}} #endif |