microsoft / Range-V3-VS2015

A fork of the popular range-v3 C++ library with support for the Visual Studio 2015 Update 3 VC++ compiler.
Other
114 stars 22 forks source link

Upstream fix for type-erasing all convertible reference types #31

Open socec opened 6 years ago

socec commented 6 years ago

Upstream issue: https://github.com/ericniebler/range-v3/issues/444

Upstream fix: https://github.com/ericniebler/range-v3/pull/446/

The problem is observable when trying to compile the following snippet without this fix:

#include <vector>
#include <range/v3/all.hpp>

int main() {
    std::vector<int> vec{1, 2, 3};
    auto view = ranges::any_view<const int&>(vec);
 }
msftclas commented 6 years ago

CLA assistant check
All CLA requirements met.