Boost logo

Boost :

From: John Torjo (john_at_[hidden])
Date: 2003-04-24 08:56:42


> > void Foo(std::string m)
> > { cout << m; }
> >
> > Foo("This %s work - %u" % "does" % 123)

Could something like this work?

struct pre_t { std::string m_str; };
#define pre() pre_t().m_str

Foo( pre() % "bla bla " % "bla bla " ...)

I think this is pretty simple.

Best,
John


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