Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-18 09:49:41

From: "David Abrahams" <david.abrahams_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
> > Strongly agreed; I often say that new/delete have no place in user code.
> Now
> > if you have a solution handy for the argument forwarding problem, that'd
> be
> > great. ;-)
> boost::ref()?

Yes, this might be a viable alternative.

> > (Note: it's not 4^n, it's 2^n, and it doesn't work.)
> What's 2^n? What doesn't work?

create(T &);
create(T const &);
create(T volatile &);
create(T const volatile &);

is 4^n. But there's no need for the volatile overloads.

create(T &);
create(T const &);

is 2^n but unfortunately doesn't work for const arguments, CWG#214 etc.

Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at, gregod at, cpdaniel at, john at