Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-03-04 17:31:59


"Jonathan Turkanis" <technews_at_[hidden]> wrote in message
news:c289qo$bag$1_at_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; }


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk