help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: boost::noncopyable and warning: ... override "=" or copy-ctor


From: Seweryn Habdank-Wojewódzki
Subject: Re: boost::noncopyable and warning: ... override "=" or copy-ctor
Date: Sat, 25 Aug 2007 14:53:19 -0700
User-agent: G2/1.0

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.

> For this kind
> of classes you must define what "copying" means, to deal with the
> "shared resource" problem.

I know that I have to define, but I assume, that noncopyable did it.

Thanks and regards.

Seweryn Habdank-Wojewodzki.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]