能够作non-type tamplate argument 的类型

 直接上例子:c++       template <bool>     struct StaticCheck { StaticCheck(...);}; 模板     template <>     struct StaticCheck<false> {}; 变量       bool f =false;     StaticCheck<f>();sed   报错: Error 1 error
相关文章
相关标签/搜索