网友评论2012-11-23 16:38:55
hpho
#define COPY_CONSTRUCT 1
template<int i>
struct A;
template<>
struct A<!COPY_CONSTRUCT>
{
A() { printf("A() @ %p\n",this); }
// A( const A& ) { printf("A(A) @ %p\n", this);}
A& operator=( const A& ) { cout << "A=A" << endl; }
~A() { printf("~A() @ %p\n"