Subject: Re: [boost] Date_Time : Error in time_duration.hpp
From: GAURAV GUPTA (ya1gaurav_at_[hidden])
Date: 2012-11-28 06:42:30
>The patch is not valid since it disables assignment. The
>compiler-generated assignment is suitable, the copy constructor
>probably doesn't have to be user-defined as well.
But the tool I am using is reporting me the above error. If i remove the
copy constructor, then it will report error for *Missing copy* error also.
So how can I fix it?
On Wed, Nov 28, 2012 at 4:59 PM, Andrey Semashev
> On Wed, Nov 28, 2012 at 3:13 PM, GAURAV GUPTA <ya1gaurav_at_[hidden]> wrote:
> > Hello,
> > I have encountered some errors in Boost, while running some static
> > tool.
> > It is reported in boost/date_time/time_duration.hpp
> > The error is:
> > *boost::date_time::time_duration has user-written copy constructor but
> > corresponding user-written assignment operator.*
> > *Is it valid to apply the following patch.*
> The patch is not valid since it disables assignment. The
> compiler-generated assignment is suitable, the copy constructor
> probably doesn't have to be user-defined as well. There is a comment
> that it is required by dividable<> but I can't see where it's used.
> Unsubscribe & other changes:
-- Regards, Gaurav