mirror of
https://github.com/boostorg/concept_check.git
synced 2025-07-31 13:07:33 +02:00
changed default of BOOST_FPTR to use &
[SVN r8710]
This commit is contained in:
@ -14,10 +14,10 @@
|
|||||||
#include <boost/pending/limits.hpp>
|
#include <boost/pending/limits.hpp>
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
|
|
||||||
#if (__GNUC__) || defined(__KCC) || defined(__ghs) || defined(__MWERKS__)
|
#if defined(BOOST_MSVC) || defined(__BORLANDC__)
|
||||||
#define BOOST_FPTR &
|
|
||||||
#else
|
|
||||||
#define BOOST_FPTR
|
#define BOOST_FPTR
|
||||||
|
#else
|
||||||
|
#define BOOST_FPTR &
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
@ -131,9 +131,10 @@ struct require_same { typedef T type; };
|
|||||||
struct UnsignedIntegerConcept {
|
struct UnsignedIntegerConcept {
|
||||||
void constraints() {
|
void constraints() {
|
||||||
#if !defined BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
#if !defined BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||||
errortype_must_be_an_unsigned_integer_type();
|
x.error_type_must_be_an_unsigned_integer_type();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
T x;
|
||||||
};
|
};
|
||||||
#if !defined BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
#if !defined BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||||
template <> struct UnsignedIntegerConcept<unsigned short>
|
template <> struct UnsignedIntegerConcept<unsigned short>
|
||||||
|
Reference in New Issue
Block a user