On Aug 25, 6:53 pm, Seweryn Habdank-Wojewódzki <[EMAIL PROTECTED]>
wrote:
> Hi
>
> > The warning is useful because, if your class holds dynamically
> > allocated resources, the default copy constructor and copy assignment
> > operator generated by the compiler won't be appropriate.
>
> Yes. But noncopyable should define that, isn't it? Means that I do not
> want to copy objects.

"noncopyable" is not a special keyword known by the compiler.
It's just a class with private copy constructor and copy assignment
operator.

You missed my first paragraph:

"(...) assuming you are using boost::noncopyable appropriately, it
means
the diagnostic mechanism is not detecting that, in this case, your
class simply isn't copyable."

--
 Pedro Lamarão

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to