mirror of
https://github.com/boostorg/contract.git
synced 2026-02-21 15:02:26 +00:00
29 lines
808 B
C++
29 lines
808 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_NAME_INDEX
|
|
#include "../aux_/pp_traits.hpp"
|
|
#include <boost/contract/ext_/preprocessor/traits/class.hpp>
|
|
|
|
#define BOOST_CONTRACT_TEST_(name) \
|
|
BOOST_CONTRACT_TEST_AUX_PP_TRAITS( \
|
|
BOOST_CONTRACT_EXT_PP_CLASS_TRAITS_NAME, \
|
|
BOOST_CONTRACT_EXT_PP_CLASS_TRAITS_PARSE_D, \
|
|
template( typename T, (std::map<int, char>::value_type) V ) class, \
|
|
(name), \
|
|
extends( b, c ), \
|
|
name \
|
|
)
|
|
|
|
int main ( ) {
|
|
BOOST_CONTRACT_TEST_( a )
|
|
return BOOST_CONTRACT_TEST_AUX_PP_TRAITS_REPORT_ERRORS;
|
|
}
|
|
|
|
#endif // variadics
|
|
|