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

Problems when /permissive- is used #22

Open jdlugosz opened 7 years ago

jdlugosz commented 7 years ago

When the /permissive- flag is used (in the current preview of VS2017) there are a couple strange errors. It gets a different type than expected, but this doesn't seem to match any of the affects noted at https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/ and in any case I wouldn't expect better conformance to break more things!

For example, test\view\const.cpp(56) gets common_pair<const int&, const int&> for the result of iter_move(begin(rng3)) when the test expects common_pair<int const&&, int const&&>. In this case, iter_move did not do its job. But look at the previous lines (53,54) where it did work!