Boost logo

Boost :

Subject: Re: [boost] [chrono] Valgrind complains
From: Vicente Botet Escriba (vicente.botet_at_[hidden])
Date: 2010-06-23 05:39:35


Roland Bock-2 wrote:
>
> vicente.botet wrote:
>>
>> Hi,
>>
>> it seems there was an old bug on duration operator=()
>>
>> Could you replace the line
>> if (rhs != *this) rep_= rhs.rep_;
>>
>> by
>>
>> if (&rhs != this) rep_= rhs.rep_;
>>
>> or just
>>
>> //~ if (rhs != &this)
>> rep_= rhs.rep_;
>>
>> Let me know if this solves the issue.
>
> Hi,
>
> I tried the first option and valgrind is happy now :-)
>
> Thanks and regards,
>
> Roland
>
>

Thank you very much for reporting this Chrono Valgrind issue.

Vicente

-- 
View this message in context: http://old.nabble.com/-chrono--Valgrind-complains-tp28945740p28969647.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk