我想写这样的东西:
template<int i> void f() {} for (constexpr int i : {1,2,3}) { f<i>(); }
是否可以迭代constexpr?
谢谢
c++ c++11
c++ ×1
c++11 ×1