this code can work in c++17, but I get error in c++11.
template <class T>
constexpr auto is_ref_counted_directly = !std::is_same<int, T>::value;
Could you give me some help, thanks.
my env: gcc 4.8.5, c++11.
this code can work in c++17, but I get error in c++11.
template <class T>
constexpr auto is_ref_counted_directly = !std::is_same<int, T>::value;
Could you give me some help, thanks.
my env: gcc 4.8.5, c++11.
Variable template need at least c++14
, so it would not work in c++11
gcc 4.8.5 seems not support c++14
btw