isocpp icon indicating copy to clipboard operation
isocpp copied to clipboard

copy/move ctor

Open tvaneerd opened this issue 6 years ago • 0 comments

It should probably be mentioned that the copy/move ctor should never be explicit.

And by 'never' does mean 'rarely' (as usual) or does it really mean never?

A heavy class, ie an Image class should probably not have a copy-ctor. Typically a copy() or clone() function makes it more clear than there is no free lunch. Would an explicit copy-ctor actually make sense here?

tvaneerd avatar Jul 20 '17 15:07 tvaneerd