需不需要加上class S?
把template
改成template才通过,可是那代码用c++一编译通不过,提示error C2783: 'void __cdecl swapNum(T &,T &)' : could not deduce template argument for 'S'。。把S去掉就可以通过。这是什么情况??把template
改成template才通过,可是那代码用c++一编译通不过,提示error C2783: 'void __cdecl swapNum(T &,T &)' : could not deduce template argument for 'S'。。把S去掉就可以通过。这是什么情况??2016-03-27
举报