copy constuctor wish

Tobias Wittmann caine at bobgun.de
Wed Aug 22 14:25:16 BST 2001


It would be nice if I create a class the copy constuctor would apear

exam.:

	class Test
	{
		Test();
		~Test();
		Test( const Test & cpy );
		const Test & operator=( const Test & cpy );
	};
.. cpp
Test::Test( const Test & cpy )
{
	*this = cpy;
}

const Test & operator=( const Test & cpy )
{
	// add copy constuctor code here 
	return *this;
}

and actually it would be more nice if I put a memeber variable inside it
would add it into the operator = also

to do this it could be done with a temlate .. or something like that 

	so far thanx Tobias

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list