
4 Mar
2004
4 Mar
'04
10:31 p.m.
"Jonathan Turkanis" <technews@kangaroologic.com> wrote in message news:c289qo$bag$1@sea.gmane.org...
When I compile the following simple program on VC6:
Here's a more nicely formatted version (I hope): #include <boost/preprocessor/facilities/empty.hpp> #include <boost/preprocessor/punctuation/comma_if.hpp> #define PARAM(has_param) \ BOOST_PP_IF( has_param, typename Param, \ BOOST_PP_EMPTY()) #define MACRO(has_param) \ template< PARAM(has_param) \ BOOST_PP_COMMA_IF(has_param) \ typename T > \ struct name { }; MACRO(0) int main() { return 0; }