Boost logo

Boost Users :

Subject: Re: [Boost-users] use of boost::noncopyable ?
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2012-03-20 04:21:12


On Tue, Mar 20, 2012 at 4:44 AM, John M. Dlugosz <mpbecey7gu_at_[hidden]>wrote:

> 1>V:\Trunk\stable\src\Include\**Tools/unique_RAII.h(61): error C2248:
> 'boost::noncopyable_::**noncopyable::operator =' : cannot access private
> member declared in class 'boost::noncopyable_::**noncopyable'
> ....
> This diagnostic occurred in the compiler generated function (the normal
> copy constructor)
>
>
> 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.

HTH

- Rob.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net