Boost logo

Boost Users :

Subject: Re: [Boost-users] use of boost::noncopyable ?
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2012-03-21 00:14:40

On 3/20/2012 3:21 AM, Robert Jones wrote:
> That kind of defeats the purpose, doesn't it? I have to declare a dummy copy
> constructor to get the class to compile.
> If I haven't missed the point of your post I think that's exactly what it's supposed to
> do. The mention of 'noncopyable' in the
> error message is the hint.

I interpreted the error, which cited the class itself and not anything in my code that
uses the class, to mean that the auto-generation was not suppressed at all and in fact
prevented it from being successful rather than silently being not generated.

It turns out that something in my code did want the assignment, so the class "did its job"
but was totally unhelpful in telling me where in the code this was.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at