Boost C++ Libraries: Ticket #2628: Sequence concept incorrectly fails for basic_string https://svn.boost.org/trac10/ticket/2628 <p> The Sequence concept fails when tested against basic_string (e.g. BOOST_CONCEPT_ASSERT((Sequence&lt;T&gt;)); ) because an extra constructor test is included. This test is for X a(n) where n is the size of the sequence to be created. However, section 23.1.1 table 67 of the C++ standard does not include this test in the definition of the Sequence concept. Because this test is in place, basic_string is rejected by the current implementation of the Sequence concept, since basic_string does not have this constructor. However, section 21.3 paragraph 2 of the C++ standard states, "The class template basic_string conforms to the requirements of a Sequence, as specified in (23.1.1)." </p> <p> The fix for this should be as simple as removing the test for a constructor of the form X a(n) in the Sequence concept implementation. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2628 Trac 1.4.3 acharles Tue, 18 Feb 2014 12:49:53 GMT owner, status changed https://svn.boost.org/trac10/ticket/2628#comment:1 https://svn.boost.org/trac10/ticket/2628#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">jsiek</span> to <span class="trac-author">acharles</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket acharles Wed, 19 Feb 2014 06:34:47 GMT <link>https://svn.boost.org/trac10/ticket/2628#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2628#comment:2</guid> <description> <p> Proposed fix: <a class="ext-link" href="https://github.com/boostorg/concept_check/pull/2"><span class="icon">​</span>https://github.com/boostorg/concept_check/pull/2</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>acharles</dc:creator> <pubDate>Fri, 21 Feb 2014 09:24:23 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/2628#comment:3 https://svn.boost.org/trac10/ticket/2628#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.38.0</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> Ticket