假設我有一個模板類,像這樣: template<typename T, const T* array>
struct NullTArrayLength{
static constexpr size_t value = NullTArrayLength<T, array+1>::value;
};
/* Some how have a specialization that ter
下面的代碼編譯罰款與GCC: constexpr struct {} s;
但鏘,出現以下錯誤拒絕它: error: default initialization of an object of const type 'const struct (anonymous struct at …)' without a user-provided default constructor 我測試過GC