summaryrefslogtreecommitdiff
path: root/Rx/v2
diff options
context:
space:
mode:
authorKirk Shoop <kirk.shoop@microsoft.com>2017-02-23 07:58:31 -0800
committerGrigoriy Chudnov <g.chudnov@gmail.com>2017-02-24 00:01:24 +0300
commit55df83d9b4733282ef5da968ce74c7e83ed3aee2 (patch)
treea61a78dfe3bf45509251fd6568417cc8deb769b9 /Rx/v2
parentb7939f8971d18dcedc1666f6466a868f7ed04794 (diff)
downloadRxCpp-55df83d9b4733282ef5da968ce74c7e83ed3aee2.tar.gz
fix iterator_type::value_type error
#355 reported that range-v3 ranges failed due to an errant `&` in the `iterator_type`
Diffstat (limited to 'Rx/v2')
-rw-r--r--Rx/v2/src/rxcpp/sources/rx-iterate.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rx/v2/src/rxcpp/sources/rx-iterate.hpp b/Rx/v2/src/rxcpp/sources/rx-iterate.hpp
index 8832775..cb526b3 100644
--- a/Rx/v2/src/rxcpp/sources/rx-iterate.hpp
+++ b/Rx/v2/src/rxcpp/sources/rx-iterate.hpp
@@ -53,7 +53,7 @@ template<class Collection>
struct iterate_traits
{
typedef rxu::decay_t<Collection> collection_type;
- typedef decltype(std::begin(*(collection_type*)nullptr)) iterator_type;
+ typedef rxu::decay_t<decltype(std::begin(*(collection_type*)nullptr))> iterator_type;
typedef rxu::value_type_t<std::iterator_traits<iterator_type>> value_type;
};