A
Alfonso Morra
Hi,
I have the following code as part of a class:
class Cell {
public:
Cell( int ) ;
Cell( const Cell& ) ;
Cell& operator= Cell( const Cell& ) ; // <- compiler croaks here
virtual ~Cell() ;
...
};
The errors I'm getting are as ff:
error C2146: syntax error : missing ';' before identifier 'Cell'
error C2535: 'Cell::Cell(const Cell &)' : member function already
defined or declared
The copy constructor looks normal to me, and I really do not know what's
causing the problem - any help will be much appreciated
I have the following code as part of a class:
class Cell {
public:
Cell( int ) ;
Cell( const Cell& ) ;
Cell& operator= Cell( const Cell& ) ; // <- compiler croaks here
virtual ~Cell() ;
...
};
The errors I'm getting are as ff:
error C2146: syntax error : missing ';' before identifier 'Cell'
error C2535: 'Cell::Cell(const Cell &)' : member function already
defined or declared
The copy constructor looks normal to me, and I really do not know what's
causing the problem - any help will be much appreciated