From 80cbd761890c89fd285a76f85e7ba2863ddac8e2 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 30 Apr 2006 20:54:13 +0000 Subject: [PATCH] Misc cleanups, missing extensions of integral types to (un)signed char and, where apropriate, the long long types. [SVN r33877] --- include/boost/concept_check.hpp | 40 +++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/include/boost/concept_check.hpp b/include/boost/concept_check.hpp index e4f06fb..23780cf 100644 --- a/include/boost/concept_check.hpp +++ b/include/boost/concept_check.hpp @@ -87,12 +87,14 @@ namespace boost T x; }; - template <> struct IntegerConcept { ~IntegerConcept() {} }; - template <> struct IntegerConcept { ~IntegerConcept() {} }; - template <> struct IntegerConcept { ~IntegerConcept() {} }; - template <> struct IntegerConcept { ~IntegerConcept() {} }; - template <> struct IntegerConcept { ~IntegerConcept() {} }; - template <> struct IntegerConcept { ~IntegerConcept() {} }; + template <> struct IntegerConcept {}; + template <> struct IntegerConcept {}; + template <> struct IntegerConcept {}; + template <> struct IntegerConcept {}; + template <> struct IntegerConcept {}; + template <> struct IntegerConcept {}; + template <> struct IntegerConcept {}; + template <> struct IntegerConcept {}; // etc. template @@ -103,11 +105,12 @@ namespace boost private: T x; }; - template <> struct SignedIntegerConcept { ~SignedIntegerConcept() {} }; - template <> struct SignedIntegerConcept { ~SignedIntegerConcept() {} }; - template <> struct SignedIntegerConcept { ~SignedIntegerConcept() {} }; + template <> struct SignedIntegerConcept { }; + template <> struct SignedIntegerConcept {}; + template <> struct SignedIntegerConcept {}; + template <> struct SignedIntegerConcept {}; # if defined(BOOST_HAS_LONG_LONG) - template <> struct SignedIntegerConcept< ::boost::long_long_type> { ~SignedIntegerConcept() {} }; + template <> struct SignedIntegerConcept< ::boost::long_long_type> {}; // etc. #endif @@ -120,12 +123,15 @@ namespace boost T x; }; - template <> struct UnsignedIntegerConcept - { ~UnsignedIntegerConcept() {} }; - template <> struct UnsignedIntegerConcept - { ~UnsignedIntegerConcept() {} }; - template <> struct UnsignedIntegerConcept - { ~UnsignedIntegerConcept() {} }; + template <> struct UnsignedIntegerConcept {}; + template <> struct UnsignedIntegerConcept {}; + template <> struct UnsignedIntegerConcept {}; + template <> struct UnsignedIntegerConcept {}; +# if defined(BOOST_HAS_LONG_LONG) + template <> struct UnsignedIntegerConcept< ::boost::ulong_long_type> {}; + // etc. +#endif + // etc. //=========================================================================== @@ -428,7 +434,7 @@ namespace boost { typedef typename Func::argument_type argument_type; typedef typename Func::result_type result_type; - + ~AdaptableUnaryFunctionConcept() { BOOST_CONCEPT_ASSERT((ConvertibleConcept));