summaryrefslogtreecommitdiff
path: root/Rx/v2/src/rxcpp/operators/rx-take_until.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Rx/v2/src/rxcpp/operators/rx-take_until.hpp')
-rw-r--r--Rx/v2/src/rxcpp/operators/rx-take_until.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Rx/v2/src/rxcpp/operators/rx-take_until.hpp b/Rx/v2/src/rxcpp/operators/rx-take_until.hpp
index b1fb8ff..e4109cd 100644
--- a/Rx/v2/src/rxcpp/operators/rx-take_until.hpp
+++ b/Rx/v2/src/rxcpp/operators/rx-take_until.hpp
@@ -16,9 +16,9 @@ namespace detail {
template<class T, class Observable, class TriggerObservable, class Coordination>
struct take_until : public operator_base<T>
{
- typedef typename std::decay<Observable>::type source_type;
- typedef typename std::decay<TriggerObservable>::type trigger_source_type;
- typedef typename std::decay<Coordination>::type coordination_type;
+ typedef rxu::decay_t<Observable> source_type;
+ typedef rxu::decay_t<TriggerObservable> trigger_source_type;
+ typedef rxu::decay_t<Coordination> coordination_type;
typedef typename coordination_type::coordinator_type coordinator_type;
struct values
{
@@ -162,8 +162,8 @@ struct take_until : public operator_base<T>
template<class TriggerObservable, class Coordination>
class take_until_factory
{
- typedef typename std::decay<TriggerObservable>::type trigger_source_type;
- typedef typename std::decay<Coordination>::type coordination_type;
+ typedef rxu::decay_t<TriggerObservable> trigger_source_type;
+ typedef rxu::decay_t<Coordination> coordination_type;
trigger_source_type trigger_source;
coordination_type coordination;
@@ -175,9 +175,9 @@ public:
}
template<class Observable>
auto operator()(Observable&& source)
- -> observable<typename std::decay<Observable>::type::value_type, take_until<typename std::decay<Observable>::type::value_type, Observable, trigger_source_type, Coordination>> {
- return observable<typename std::decay<Observable>::type::value_type, take_until<typename std::decay<Observable>::type::value_type, Observable, trigger_source_type, Coordination>>(
- take_until<typename std::decay<Observable>::type::value_type, Observable, trigger_source_type, Coordination>(std::forward<Observable>(source), trigger_source, coordination));
+ -> observable<rxu::value_type_t<rxu::decay_t<Observable>>, take_until<rxu::value_type_t<rxu::decay_t<Observable>>, Observable, trigger_source_type, Coordination>> {
+ return observable<rxu::value_type_t<rxu::decay_t<Observable>>, take_until<rxu::value_type_t<rxu::decay_t<Observable>>, Observable, trigger_source_type, Coordination>>(
+ take_until<rxu::value_type_t<rxu::decay_t<Observable>>, Observable, trigger_source_type, Coordination>(std::forward<Observable>(source), trigger_source, coordination));
}
};