Subject: Re: [boost] Date_Time : Error in time_duration.hpp
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2012-11-28 06:48:25
On 28 November 2012 11:42, GAURAV GUPTA <ya1gaurav_at_[hidden]> wrote:
> >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?
You haven't said what tool you are using.
Regardless, false positive warnings/errors are not uncommon.
Teach or fix your analyzer to be quiet about it, disable the warning,
report it to the analyzer's manufacturer.
If you use clang analyzer, check the False Positives
-- Mateusz Loskot, http://mateusz.loskot.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk