summaryrefslogtreecommitdiff
path: root/boost/spirit/repository/home/qi/operator
diff options
context:
space:
mode:
Diffstat (limited to 'boost/spirit/repository/home/qi/operator')
-rw-r--r--boost/spirit/repository/home/qi/operator/detail/keywords.hpp42
-rw-r--r--boost/spirit/repository/home/qi/operator/keywords.hpp1
2 files changed, 24 insertions, 19 deletions
diff --git a/boost/spirit/repository/home/qi/operator/detail/keywords.hpp b/boost/spirit/repository/home/qi/operator/detail/keywords.hpp
index 43aa133468..ee58cdc278 100644
--- a/boost/spirit/repository/home/qi/operator/detail/keywords.hpp
+++ b/boost/spirit/repository/home/qi/operator/detail/keywords.hpp
@@ -57,7 +57,7 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
bool call_subject_unused(
Subject const &subject, Iterator &first, Iterator const &last
, Context& context, Skipper const& skipper
- , Index& idx ) const
+ , Index& /*idx*/ ) const
{
Iterator save = first;
skipper_keyword_marker<Skipper,NoCasePass>
@@ -76,7 +76,7 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
bool call_subject(
Subject const &subject, Iterator &first, Iterator const &last
, Context& context, Skipper const& skipper
- , Index& idx ) const
+ , Index& /*idx*/ ) const
{
Iterator save = first;
@@ -164,9 +164,11 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
};
// never called, but needed for decltype-based result_of (C++0x)
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
template <typename Element>
typename result<element_char_type(Element)>::type
- operator()(Element&) const;
+ operator()(Element&&) const;
+#endif
};
// Compute the list of character types of the child kwd directives
@@ -264,9 +266,11 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
};
// never called, but needed for decltype-based result_of (C++0x)
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
template <typename Element>
typename result<element_case_type(Element)>::type
- operator()(Element&) const;
+ operator()(Element&&) const;
+#endif
};
// Compute the list of character types of the child kwd directives
@@ -440,7 +444,7 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
Iterator &first,
const Iterator &last,
const ParseVisitor &parse_visitor,
- const Skipper &skipper) const
+ const Skipper &/*skipper*/) const
{
if(parser_index_type* val_ptr =
lookup->find(first,last,first_pass_filter_type()))
@@ -459,7 +463,7 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
const Iterator &last,
const ParseVisitor &parse_visitor,
const NoCaseParseVisitor &no_case_parse_visitor,
- const Skipper &skipper) const
+ const Skipper &/*skipper*/) const
{
Iterator saved_first = first;
if(parser_index_type* val_ptr =
@@ -503,27 +507,27 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
template <typename Iterator,typename ParseVisitor, typename NoCaseParseVisitor,typename Skipper>
bool parse(
- Iterator &first,
- const Iterator &last,
- const ParseVisitor &parse_visitor,
- const NoCaseParseVisitor &no_case_parse_visitor,
- const Skipper &skipper) const
+ Iterator &/*first*/,
+ const Iterator &/*last*/,
+ const ParseVisitor &/*parse_visitor*/,
+ const NoCaseParseVisitor &/*no_case_parse_visitor*/,
+ const Skipper &/*skipper*/) const
{
return false;
}
template <typename Iterator,typename ParseVisitor, typename Skipper>
bool parse(
- Iterator &first,
- const Iterator &last,
- const ParseVisitor &parse_visitor,
- const Skipper &skipper) const
+ Iterator &/*first*/,
+ const Iterator &/*last*/,
+ const ParseVisitor &/*parse_visitor*/,
+ const Skipper &/*skipper*/) const
{
return false;
}
template <typename ParseFunction>
- bool parse( ParseFunction &function ) const
+ bool parse( ParseFunction &/*function*/ ) const
{
return false;
}
@@ -550,7 +554,7 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
}
template <typename T, typename Position, typename Action>
- int call(const spirit::qi::action<T,Action> &parser, const Position position ) const
+ int call(const spirit::qi::action<T,Action> &parser, const Position /*position*/ ) const
{
// Get the initial state of the flags array and store it in the flags initializer
flags[Position::value]=parser.subject.iter.flag_init();
@@ -558,7 +562,7 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
}
template <typename T, typename Position>
- int call( const T & parser, const Position position) const
+ int call( const T & parser, const Position /*position*/) const
{
// Get the initial state of the flags array and store it in the flags initializer
flags[Position::value]=parser.iter.flag_init();
@@ -566,7 +570,7 @@ namespace boost { namespace spirit { namespace repository { namespace qi { names
}
template <typename T, typename Position>
- int call( const spirit::qi::hold_directive<T> & parser, const Position position) const
+ int call( const spirit::qi::hold_directive<T> & parser, const Position /*position*/) const
{
// Get the initial state of the flags array and store it in the flags initializer
flags[Position::value]=parser.subject.iter.flag_init();
diff --git a/boost/spirit/repository/home/qi/operator/keywords.hpp b/boost/spirit/repository/home/qi/operator/keywords.hpp
index f6b05fcb39..350c2fe775 100644
--- a/boost/spirit/repository/home/qi/operator/keywords.hpp
+++ b/boost/spirit/repository/home/qi/operator/keywords.hpp
@@ -31,6 +31,7 @@
#include <boost/spirit/home/qi/action/action.hpp>
#include <boost/spirit/home/qi/directive/hold.hpp>
#include <boost/mpl/count_if.hpp>
+#include <boost/mpl/greater.hpp>
#include <boost/mpl/range_c.hpp>
#include <boost/mpl/copy.hpp>
#include <boost/mpl/size.hpp>