Boost logo

Boost :

From: Maurizio Vitale (mav_at_[hidden])
Date: 2007-05-14 19:37:34


What about introducing a macro:

#define BOOST_PROTO_WRAP(DOMAIN,EXPRESSION) \
namespace boost { namespace proto { \
    template<typename E> \
    struct generate<DOMAIN, E> { \
      typedef EXPRESSION<E> type; \
      static type make (E const& expr) { \
        return type (expr); \
      } \
    }; \
} }

as far as I can tell one does never need something different from the above boilerplate code.
(otherwise I'd like to see examples, for my own education)

Not a big deal, I know, but looks nicer (and sound nicer in the docs as well, I think).

Have fun in Colorado!

     Maurizio


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