00001 #ifndef toast_concept_check_hpp_INCLUDED 00002 #define toast_concept_check_hpp_INCLUDED 00003 00004 #include <boost/concept_check.hpp> 00005 #include <toast/config.hpp> 00006 #include <toast/detail/contracts.hpp> 00007 00014 #if defined (USE_BOOST_CLASS_REQUIRE) 00015 00030 #define TOAST_CLASS_REQUIRE(a,b,c) BOOST_CLASS_REQUIRE(a,b,c) 00031 #define TOAST_CLASS_REQUIRE2(a,b,c,d) BOOST_CLASS_REQUIRE2(a,b,c,d) 00032 #define TOAST_CLASS_REQUIRE3(a,b,c,d,e) BOOST_CLASS_REQUIRE3(a,b,c,d,e) 00033 #define TOAST_CLASS_REQUIRE4(a,b,c,d,e,f) BOOST_CLASS_REQUIRE4(a,b,c,d,e,f) 00034 00037 #else 00038 00039 #define TOAST_CLASS_REQUIRE(a,b,c) typedef int TOAST_PP_APPEND_LINE(dummy) 00040 #define TOAST_CLASS_REQUIRE2(a,b,c,d) typedef int TOAST_PP_APPEND_LINE(dummy) 00041 #define TOAST_CLASS_REQUIRE3(a,b,c,d,e) typedef int TOAST_PP_APPEND_LINE(dummy) 00042 #define TOAST_CLASS_REQUIRE4(a,b,c,d,e,f) \ 00043 typedef int TOAST_PP_APPEND_LINE(dummy) 00044 00045 #endif // USE_BOOST_CLASS_REQUIRE 00046 00047 #endif //toast_concept_check_hpp_INCLUDED 00048