我不知道,为什么我的代码不起作用。我创建struct
和里面放超载运营operator T***()
,在主,我想用下面的符号const int * const * const * p1 = a;
重载运算符T ***()
struct A{
template<class T> operator T***(){}
};
int main(){
A a;
const int * const * const * p1 = a;
return 0;
}
Error: undefined reference to '_ZN1AcvPPPT_IKiEEv'
我不知道你为什么期望工作。 – sjdowling
@sjdowling:告诉他为什么。 –
在我看到的所有奇怪的代码中,这使我最喜欢WTF。恭喜:)虽然,但是,你想在这里实现什么? – jrok