¡@

Home 

c++ Programming Glossary: foo_template

Any metaprogramming way to generate overloads for various numbers of template parameters?

http://stackoverflow.com/questions/5475046/any-metaprogramming-way-to-generate-overloads-for-various-numbers-of-template-pa

Example template header no include guard #define FOO_TEMPLATE_PARAMS BOOST_PP_ENUM_PARAMS FOO_NUM_ARGS class T #define FOO_PARAM.. FOO_PARAM BOOST_PP_EMTPY #if FOO_NUM_ARGS 0 #define FOO_TEMPLATE template FOO_TEMPLATE_PARAMS #else #define FOO_TEMPLATE #endif.. #if FOO_NUM_ARGS 0 #define FOO_TEMPLATE template FOO_TEMPLATE_PARAMS #else #define FOO_TEMPLATE #endif FOO_TEMPLATE void foo..