Explorar o código

Fix bug with non-copyable map elements.

Sam Jaffe %!s(int64=4) %!d(string=hai) anos
pai
achega
048a25f176
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/stream/streams/source.hpp

+ 1 - 1
include/stream/streams/source.hpp

@@ -40,7 +40,7 @@ namespace stream { namespace detail {
   template <typename It, typename V = typename It::value_type>
   class range_stream {
   public:
-    typedef V & reference;
+    typedef typename It::reference reference;
 
     explicit range_stream(It b, It e) : begin_(b), end_(e) {}