This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: debug/vector anomalous behaviour


Ok, many thanks to everyone for the explanations. I'm going to commit to mainline and 4_3-branch the below, tested x86_64-linux.

Paolo.

/////////////
--- Begin Message ---
On Sat, May 10, 2008 at 7:47 AM, Roberto Bagnara <bagnara@cs.unipr.it> wrote:
> So
>
>  365 #ifdef _GLIBCXX_DEBUG_PEDANTIC
>  366         return __elements > this->capacity();
>  367 #else
>  368         return __elements > _M_guaranteed_capacity;
>  369 #endif
>
> should become
>
>  365 #ifndef _GLIBCXX_DEBUG_PEDANTIC
>  366         return __elements > this->capacity();
>  367 #else
>  368         return __elements > _M_guaranteed_capacity;
>  369 #endif
>
> right?

Yes! Thank you.

  - Doug

--- End Message ---

Attachment: CL_dmrr
Description: Binary data

Attachment: patch_dmrr
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]