summaryrefslogtreecommitdiff
path: root/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
diff options
context:
space:
mode:
authorBenPope <ben@pope.name>2015-02-18 00:48:16 +0800
committerKirk Shoop <kirk.shoop@microsoft.com>2015-02-17 21:18:27 -0800
commit14b0164c5a6ecda8777476f6c27af3bbab1ebd33 (patch)
treebf419ef72874fac256f6c53e27a970782ff412dc /Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
parent2e8e8903d6e33f7447313fccf98883f9991b83ce (diff)
downloadRxCpp-14b0164c5a6ecda8777476f6c27af3bbab1ebd33.tar.gz
Use type aliases or: How I learned to love the closing chevron
Diffstat (limited to 'Rx/v2/src/rxcpp/operators/rx-observe_on.hpp')
-rw-r--r--Rx/v2/src/rxcpp/operators/rx-observe_on.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp b/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
index 4d89044..8f52473 100644
--- a/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
+++ b/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
@@ -16,9 +16,9 @@ namespace detail {
template<class T, class Coordination>
struct observe_on
{
- typedef typename std::decay<T>::type source_value_type;
+ typedef rxu::decay_t<T> source_value_type;
- typedef typename std::decay<Coordination>::type coordination_type;
+ typedef rxu::decay_t<Coordination> coordination_type;
typedef typename coordination_type::coordinator_type coordinator_type;
coordination_type coordination;
@@ -34,7 +34,7 @@ struct observe_on
typedef observe_on_observer<Subscriber> this_type;
typedef observer_base<source_value_type> base_type;
typedef source_value_type value_type;
- typedef typename std::decay<Subscriber>::type dest_type;
+ typedef rxu::decay_t<Subscriber> dest_type;
typedef observer<value_type, this_type> observer_type;
typedef rxn::notification<T> notification_type;
@@ -184,14 +184,14 @@ struct observe_on
template<class Coordination>
class observe_on_factory
{
- typedef typename std::decay<Coordination>::type coordination_type;
+ typedef rxu::decay_t<Coordination> coordination_type;
coordination_type coordination;
public:
observe_on_factory(coordination_type cn) : coordination(std::move(cn)) {}
template<class Observable>
auto operator()(Observable&& source)
- -> decltype(source.template lift<typename std::decay<Observable>::type::value_type>(observe_on<typename std::decay<Observable>::type::value_type, coordination_type>(coordination))) {
- return source.template lift<typename std::decay<Observable>::type::value_type>(observe_on<typename std::decay<Observable>::type::value_type, coordination_type>(coordination));
+ -> decltype(source.template lift<rxu::value_type_t<rxu::decay_t<Observable>>>(observe_on<rxu::value_type_t<rxu::decay_t<Observable>>, coordination_type>(coordination))) {
+ return source.template lift<rxu::value_type_t<rxu::decay_t<Observable>>>(observe_on<rxu::value_type_t<rxu::decay_t<Observable>>, coordination_type>(coordination));
}
};