阅读背景:

为什么c++可以从左边推导赋值操作符右边的模板参数?

来源:互联网 
template <typename T>
void func(T&){
}

int main(){
    void (*p)(int&) = func;//or &func
    return 0;
}
template <typename T>
void func(T&){
}

int mai



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: