【发布时间】:2021-02-12 17:57:51
【问题描述】:
下面的代码编译并运行得很好with GCC 8.3和Clang 10.0.1,而它却惨败on MicroSoft shiny compiler。
#include <vector>
#include <range/v3/view/group_by.hpp>
int main(){
std::vector<int> edits{1,1,3,2,2,4,4,4,4,1,1,3,3,2};
auto xxx = ranges::subrange(edits.begin(), edits.end());
}
我缺少一些标志吗?
【问题讨论】:
-
它适用于
/std:c++latest -
范围不是 c++17 的一部分。
标签: c++ visual-studio c++17 range-v3 compiler-explorer