Files
contract/test/pp_class_traits/key.cpp
2015-03-12 11:44:42 -07:00

31 lines
889 B
C++

#include <boost/preprocessor/config/config.hpp>
#if !BOOST_PP_VARIADICS
# error "this compiler does not support variadic macros"
#else
#define BOOST_CONTRACT_EXT_PP_CLASS_TRAITS_AUX_INDEX_TEST \
BOOST_CONTRACT_EXT_PP_CLASS_TRAITS_AUX_KEY_INDEX
#include "../aux_/pp_traits.hpp"
#include <boost/contract/ext_/preprocessor/traits/class.hpp>
#include <boost/preprocessor/facilities/empty.hpp>
#define BOOST_CONTRACT_TEST_(key) \
BOOST_CONTRACT_TEST_AUX_PP_TRAITS( \
BOOST_CONTRACT_EXT_PP_CLASS_TRAITS_KEY, \
BOOST_CONTRACT_EXT_PP_CLASS_TRAITS_PARSE_D, \
template( typename T, (std::map<int, char>::value_type) V ), \
key, \
(a) extends( b, c ), \
key \
)
int main ( ) {
BOOST_CONTRACT_TEST_( class )
BOOST_CONTRACT_TEST_( struct )
return BOOST_CONTRACT_TEST_AUX_PP_TRAITS_REPORT_ERRORS;
}
#endif // variadics