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: vector<bool> _M_start and 0 offset


On 29/09/18 10:56 +0200, Marc Glisse wrote:
Hello,

here is a clang-friendly version of the patch (same changelog), tested a while ago. Is it ok or do you prefer something like the

+ if(this->_M_impl._M_start._M_offset != 0) __builtin_unreachable();

version suggested by François?

I don't think __builtin_unreachable would improve the clarity of the code.

The patch is OK for trunk, thanks.



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