summaryrefslogtreecommitdiff
path: root/boost/spirit/home/x3/core/parser.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/spirit/home/x3/core/parser.hpp')
-rw-r--r--boost/spirit/home/x3/core/parser.hpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/boost/spirit/home/x3/core/parser.hpp b/boost/spirit/home/x3/core/parser.hpp
index 27115b8de4..d8019c8a99 100644
--- a/boost/spirit/home/x3/core/parser.hpp
+++ b/boost/spirit/home/x3/core/parser.hpp
@@ -51,17 +51,15 @@ namespace boost { namespace spirit { namespace x3
}
template <typename Action>
- action<Derived, Action>
- operator[](Action f) const
+ action<Derived, Action> operator[](Action f) const
{
- return action<Derived, Action>(this->derived(), f);
+ return { this->derived(), f };
}
template <typename Handler>
- guard<Derived, Handler>
- on_error(Handler f) const
+ guard<Derived, Handler> on_error(Handler f) const
{
- return guard<Derived, Handler>(this->derived(), f);
+ return { this->derived(), f };
}
};