Boost logo

Boost :

From: Ronald Garcia (garcia_at_[hidden])
Date: 2001-07-09 08:42:36


Peter Dimov writes:
>
> "15.6. Keep in mind that the compiler will implicilty generate a copy
> constructor, assignment operator and a destructor if you don't declare them
> explicitly. If you rely on this behavior, document it using a comment inside
> the class body:
>
> // implicitly generated members are fine and useful
> "

I dont think one should have to state that the implicitly generated
members are okay. I'd say that the absence of either
boost::noncopyable or the private declaration of components would say
enough. This comment seems to go against the grain of the language.

ron


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk