Hi is I have a This snip that will compile but print only one bingo instead of two. The gcc is version 4.1.2 ========== #include<iostream> using namespace std;
class A { public: A () {} template<class T> A(T const &orig) { cout<<"bingo!"<<endl; } }; class B { }; int main(int argc, char *argv[]) { A a; A b(a); B c; A d(c); return 0; } =========== The problem is that a default copy constructor is isued instead of using the specialization of the template function. -- __________________________________________________ Eduard Timotei BUDULEA / \ Software Developer - GECAD Technologies \ / mailto: [EMAIL PROTECTED] X ASCII Ribbon against HTML-mail / \ __________________________________________________