Skip to content

Commit eb9c019

Browse files
author
Sasha Nikiforov
committed
should be decltype(auto)
1 parent 7df4927 commit eb9c019

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

adobe/arg_stream.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ template <typename F,
216216
struct invoker {
217217
// add an argument to a Fusion cons-list for each parameter type
218218
template <typename Args, typename ArgStream>
219-
static inline auto apply(F func, ArgStream& astream,
219+
static inline decltype(auto) apply(F func, ArgStream& astream,
220220
Args const& args) {
221221
typedef typename remove_cv_ref<typename boost::mpl::deref<From>::type>::type arg_type;
222222
typedef typename boost::mpl::next<From>::type next_iter_type;
@@ -230,7 +230,7 @@ struct invoker {
230230
template <typename F, class To>
231231
struct invoker<F, To, To> {
232232
template <typename Args, typename ArgStream>
233-
static inline auto apply(F func, ArgStream&, Args const& args) {
233+
static inline decltype(auto) apply(F func, ArgStream&, Args const& args) {
234234
return boost::fusion::invoke(func, args);
235235
}
236236
};

0 commit comments

Comments
 (0)