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
115 stars 22 forks source link

basic_iterator does not have operator-> #30

Open subbota-a opened 6 years ago

subbota-a commented 6 years ago
std::map<int, std::wstring> ss;
auto rng = ss | ranges::view::values;
auto it = ranges::find_if(rng, [](auto&& x){ x == 10;});
int y = it.base()->first; // this does not compile
// but this OK
// int z = (*(it.base())).first;
Holt59 commented 6 years ago

Related commit in range-v3: https://github.com/ericniebler/range-v3/commit/d67cc2c00f0b4ad27829383d7e71cd7d8a5714e5#diff-25aaca5db1ccdc152d5b5605c64df24f