Boost C++ Libraries: Ticket #5102: C4510 in concept_check https://svn.boost.org/trac10/ticket/5102 <p> I was using boost::is_sorted which includes concept library. This gives C4510 and C4610 on warning level 4 with vs2008 in the following case: </p> <pre class="wiki">#include &lt;boost/concept_check.hpp&gt; struct Bla { Bla (int /*i*/) {} }; bool operator&lt;(const Bla&amp;, const Bla&amp;) { return false; } void f() { BOOST_CONCEPT_ASSERT((boost::LessThanComparableConcept&lt;Bla&gt;)); } </pre><p> I might use it incorrectly; I am not completely sure how to steer this concept library. However it is also easy reproducable with boost::is_sorted(...). </p> <p> The concept_check.hpp already seems to supress these warnings, but maybe the '#pragma pop' is too early. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5102 Trac 1.4.3 Steven Watanabe Wed, 06 Apr 2011 22:26:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5102#comment:1 https://svn.boost.org/trac10/ticket/5102#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/71053" title="Supress msvc warnings. Fixes #5102.">[71053]</a>) Supress msvc warnings. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5102" title="#5102: Bugs: C4510 in concept_check (closed: fixed)">#5102</a>. </p> Ticket