summaryrefslogtreecommitdiff
path: root/Rx/v2/src/rxcpp/operators/rx-subscribe_on.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Rx/v2/src/rxcpp/operators/rx-subscribe_on.hpp')
-rw-r--r--Rx/v2/src/rxcpp/operators/rx-subscribe_on.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Rx/v2/src/rxcpp/operators/rx-subscribe_on.hpp b/Rx/v2/src/rxcpp/operators/rx-subscribe_on.hpp
index c1adb2c..4142890 100644
--- a/Rx/v2/src/rxcpp/operators/rx-subscribe_on.hpp
+++ b/Rx/v2/src/rxcpp/operators/rx-subscribe_on.hpp
@@ -16,8 +16,8 @@ namespace detail {
template<class T, class Observable, class Coordination>
struct subscribe_on : public operator_base<T>
{
- typedef typename std::decay<Observable>::type source_type;
- typedef typename std::decay<Coordination>::type coordination_type;
+ typedef rxu::decay_t<Observable> source_type;
+ typedef rxu::decay_t<Coordination> coordination_type;
typedef typename coordination_type::coordinator_type coordinator_type;
struct subscribe_on_values
{
@@ -110,7 +110,7 @@ private:
template<class Coordination>
class subscribe_on_factory
{
- typedef typename std::decay<Coordination>::type coordination_type;
+ typedef rxu::decay_t<Coordination> coordination_type;
coordination_type coordination;
public:
@@ -120,9 +120,9 @@ public:
}
template<class Observable>
auto operator()(Observable&& source)
- -> observable<typename std::decay<Observable>::type::value_type, subscribe_on<typename std::decay<Observable>::type::value_type, Observable, Coordination>> {
- return observable<typename std::decay<Observable>::type::value_type, subscribe_on<typename std::decay<Observable>::type::value_type, Observable, Coordination>>(
- subscribe_on<typename std::decay<Observable>::type::value_type, Observable, Coordination>(std::forward<Observable>(source), coordination));
+ -> observable<rxu::value_type_t<rxu::decay_t<Observable>>, subscribe_on<rxu::value_type_t<rxu::decay_t<Observable>>, Observable, Coordination>> {
+ return observable<rxu::value_type_t<rxu::decay_t<Observable>>, subscribe_on<rxu::value_type_t<rxu::decay_t<Observable>>, Observable, Coordination>>(
+ subscribe_on<rxu::value_type_t<rxu::decay_t<Observable>>, Observable, Coordination>(std::forward<Observable>(source), coordination));
}
};