Opened 12 years ago
Closed 12 years ago
#5102 closed Bugs (fixed)
C4510 in concept_check
Reported by: | Owned by: | jsiek | |
---|---|---|---|
Milestone: | To Be Determined | Component: | concept_check |
Version: | Boost 1.45.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.
(In [71053]) Supress msvc warnings. Fixes #5102.