diff options
author | Kirk Shoop <kirk.shoop@microsoft.com> | 2014-07-15 22:02:19 -0700 |
---|---|---|
committer | Kirk Shoop <kirk.shoop@microsoft.com> | 2014-07-15 22:02:19 -0700 |
commit | 638ec22f5a6073f15829b542577afc79e163d7cf (patch) | |
tree | af170d51b6c0b6d0770f6789f2758414fc5c920e /Rx/v2/src/rxcpp/rx-util.hpp | |
parent | 71044820972aef3cef3295d1cdbf6faa2a74d872 (diff) | |
download | RxCpp-638ec22f5a6073f15829b542577afc79e163d7cf.tar.gz |
fixes some compilation issues adds a start_with ish thang
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 { |