Boost C++ Libraries: Ticket #2629: The Integer concept fails for char https://svn.boost.org/trac10/ticket/2629 <p> The Integer concept fails for char (e.g. BOOST_CONCEPT_ASSERT((Integer&lt;char&gt;)) results in a compiler error). However, Section 3.9.1 paragraph 7 of the C++ standard states, "Types bool, char, wchar_t, and the signed and unsigned integer types are collectively called <em>integral</em> types. A synonym for integral type is <em>integer type</em>." So while char is not a signed integer type nor is it an unsigned integer type (and therefore is rightly rejected by the <a class="missing wiki">SignedInteger</a> and <a class="missing wiki">UnsignedInteger</a> concepts), it <em>is</em> an integer type and should be accepted by the Integer concept. </p> <p> This bug can be easily fixed by adding an instantiation for char to the Integer template in concept_check.hpp. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2629 Trac 1.4.3 Jeremiah Willcock Tue, 08 Jun 2010 23:37:22 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2629#comment:1 https://svn.boost.org/trac10/ticket/2629#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62612" title="Added char as an integral type; fixes #2629">[62612]</a>) Added char as an integral type; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2629" title="#2629: Bugs: The Integer concept fails for char (closed: fixed)">#2629</a> </p> Ticket