summaryrefslogtreecommitdiff
path: root/boost/spirit/home/qi/detail/alternative_function.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/spirit/home/qi/detail/alternative_function.hpp')
-rw-r--r--boost/spirit/home/qi/detail/alternative_function.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/boost/spirit/home/qi/detail/alternative_function.hpp b/boost/spirit/home/qi/detail/alternative_function.hpp
index aad0c54866..0c400a90d4 100644
--- a/boost/spirit/home/qi/detail/alternative_function.hpp
+++ b/boost/spirit/home/qi/detail/alternative_function.hpp
@@ -56,10 +56,10 @@ namespace boost { namespace spirit { namespace qi { namespace detail
struct alternative_function
{
alternative_function(
- Iterator& first, Iterator const& last, Context& context,
- Skipper const& skipper, Attribute& attr)
- : first(first), last(last), context(context), skipper(skipper),
- attr(attr)
+ Iterator& first_, Iterator const& last_, Context& context_,
+ Skipper const& skipper_, Attribute& attr_)
+ : first(first_), last(last_), context(context_), skipper(skipper_),
+ attr(attr_)
{
}
@@ -185,14 +185,14 @@ namespace boost { namespace spirit { namespace qi { namespace detail
struct alternative_function<Iterator, Context, Skipper, unused_type const>
{
alternative_function(
- Iterator& first, Iterator const& last, Context& context,
- Skipper const& skipper, unused_type)
- : first(first), last(last), context(context), skipper(skipper)
+ Iterator& first_, Iterator const& last_, Context& context_,
+ Skipper const& skipper_, unused_type)
+ : first(first_), last(last_), context(context_), skipper(skipper_)
{
}
template <typename Component>
- bool operator()(Component const& component)
+ bool operator()(Component const& component) const
{
// return true if the parser succeeds
return component.parse(first, last, context, skipper,