<div dir="ltr">Unless I'm mis-reading the spec, `vector<bool>::const_reference` is implementation defined. Not bool. See <a href="http://eel.is/c++draft/vector.bool">[vector.bool]</a>.<div><br></div><div>/Eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 14, 2017 at 6:39 AM, Mikhail Maltsev via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hi. According to the C++ Standard (section [vector.bool]), std::vector<bool>::const_<wbr>reference should be defined as bool. libc++ defines it as std::__1::__bit_const_<wbr>reference<std::__1::vector<<wbr>bool, std::__1::allocator<bool>>>]. Is this divergence from the standard intentional? If it is, what is the purpose?<span class="HOEnZb"><font color="#888888"><br clear="all"></font></span></div><span class="HOEnZb"><font color="#888888"><br>-- <br><div class="m_-3210636199286463016gmail_signature">Regards,<br>   Mikhail Maltsev</div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>