copy-initialization

no matching function in template class

I get no matching member function error when i try to compile this code on my mingw32 compiler #include <iostream> using std::cout; template <class T> class Pattern { public: Pattern(): element(){ cout<< "default c-tor"; } Pattern(Pattern &copy): element(copy.element){ cout<< "copy c-tor"; } ...