Esteemed maintainers and C++ experts,
I'm implementing flat_map in #3896 and I encountered a compile error specifically in the test configuration /MTd /D_ITERATOR_DEBUG_LEVEL=2 /permissive. All other configurations have the flag /permissive- and the tests are passing. The compiler error message was posted here. I don't have much experience working with ranges and I couldn't figure out the reason behind this error, but it looks like a bug with zip_view rather than my flat_map implementation.
Many thanks to achabense who composed a minimal repro source code:
#include <ranges>
#include <vector>
using namespace std;
void test() {
vector<int> a(10, 1);
vector<double> b(10, 2.0);
auto zipv = views::zip(a, b);
*zipv.begin() = _RANGES iter_move(zipv.begin());
}
int main() {
test();
}
I'd love some help with this, thanks!
Esteemed maintainers and C++ experts,
I'm implementing
flat_mapin #3896 and I encountered a compile error specifically in the test configuration/MTd /D_ITERATOR_DEBUG_LEVEL=2 /permissive. All other configurations have the flag/permissive-and the tests are passing. The compiler error message was posted here. I don't have much experience working withrangesand I couldn't figure out the reason behind this error, but it looks like a bug withzip_viewrather than myflat_mapimplementation.Many thanks to achabense who composed a minimal repro source code:
I'd love some help with this, thanks!