This range-v3 example doesn't compile with Visual C++ version 15.9:
auto letters = ranges::view::iota('a','g');
std::ostringstream out;
out << letters;
Is this by design? What is the way to output ranges to ostringstream
?
This range-v3 example doesn't compile with Visual C++ version 15.9:
auto letters = ranges::view::iota('a','g');
std::ostringstream out;
out << letters;
Is this by design? What is the way to output ranges to ostringstream
?
This program:
#include <iostream>
#include <sstream>
#include <range/v3/view/iota.hpp>
int main() {
auto letters = ranges::view::iota('a','g');
std::ostringstream out;
out << letters;
std::cout << out.str();
}
works for me with VS 2017 15.9.3 and range-v3 installed by vcpkg. It outputs [a,b,c,d,e,f]
.