diff options
Diffstat (limited to 'Rx/v2/src/rxcpp/rx-util.hpp')
-rw-r--r-- | Rx/v2/src/rxcpp/rx-util.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Rx/v2/src/rxcpp/rx-util.hpp b/Rx/v2/src/rxcpp/rx-util.hpp index 6f71c97..06da93e 100644 --- a/Rx/v2/src/rxcpp/rx-util.hpp +++ b/Rx/v2/src/rxcpp/rx-util.hpp @@ -253,6 +253,14 @@ struct resolve_type<defer_seed_type<Deferred, AN...>> typedef typename defer_seed_type<Deferred, AN...>::type type; }; +struct plus +{ + template <class LHS, class RHS> + auto operator()(LHS&& lhs, RHS&& rhs) const + -> decltype(std::forward<LHS>(lhs) + std::forward<RHS>(rhs)) + { return std::forward<LHS>(lhs) + std::forward<RHS>(rhs); } +}; + template<class OStream> struct println_function { |