Subject: [Boost-bugs] [Boost C++ Libraries] #5102: C4510 in concept_check
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-20 18:27:07
#5102: C4510 in concept_check
---------------------------------+------------------------------------------
Reporter: gast128@⦠| Owner: jsiek
Type: Bugs | Status: new
Milestone: To Be Determined | Component: concept_check
Version: Boost 1.45.0 | Severity: Problem
Keywords: |
---------------------------------+------------------------------------------
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:
{{{
#include <boost/concept_check.hpp>
struct Bla
{
Bla (int /*i*/)
{}
};
bool operator<(const Bla&, const Bla&)
{
return false;
}
void f()
{
BOOST_CONCEPT_ASSERT((boost::LessThanComparableConcept<Bla>));
}
}}}
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(...).
The concept_check.hpp already seems to supress these warnings, but maybe
the '#pragma pop' is too early.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5102> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC