这段代码可以在c++17中工作,但我在c++11中得到了错误。
template <class T> constexpr auto is_ref_counted_directly = !std::is_same<int, T>::value;
你能帮我个忙吗谢谢。
我的env: gcc 4.8.5,c++11。
发布于 2022-03-08 07:09:25
可变模板至少需要c++14,所以它不能在c++11中工作
c++14
c++11
gcc 4.8.5 c++14
https://stackoverflow.com/questions/71391115
相似问题