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: [Patch] libstdc++/21244


Paolo Carlini wrote:

>If I'm not mistaken, since any operator could be potentially overloaded,
>we must change it to this:
>
>    _Bit_type*
>    _M_allocate(size_t __n)
>    { return _M_impl.allocate((__n + int(_S_word_bit) - 1) /
>int(_S_word_bit)); }
>  
>
In fact, I'm a little unsure whether in such cases would be more clean
using size_t (but int is be also ok, since _S_word_bit = int(CHAR_BIT *
sizeof(_Bit_type)))

Paolo.


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