Flash

C++/CLI

re: g++的一个bug?[未登录] flash 2012-07-05 17:38
您好, 我也遇到這個問題, 但我是想要
struct A
{
template<typename T,typename T1>
void f( T val, T1 val1 );
};
template<typename T,typename T1>
void A::f( T val, T1 val1 ) const
{
std::cout << "type" << std::endl;
}
template<>
void A::f<int,typename T1>( int val, T1 val1 ) const
{
std::cout << "int" << std::endl;
}

win32 VC++ 會出現 cannot convert 1 from T1 to T1 錯誤

這種寫法該如何解決?

无论从哪个角度看,

你对生活,对技术都是理解很深的人!

BYTE AsmCode[4];
//为什么是4字节不是5字节?