Why using 0 as default non type template parameter for void* is not allowed

后端 未结 0 1851
渐次进展
渐次进展 2021-02-08 16:27

Why does the following code fail to compile? Even though it is legal to do void* ptr = 0;

template 
void func();

int main() {         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题