From: David Abrahams (dave_at_[hidden])
Date: 2003-11-26 11:13:51
garcia <garcia_at_[hidden]> writes:
> Is implicit_cast documented somewhere?
Sorry, I think I checked it in without having time to come up with
the docs... yet.
> I thought I would find it discussed in the conversion library docs,
> but to my dismay it was not
The quick summary is: implicit_cast<T>(expression) is equivalent to
T(expression) iff the type of expression is implicitly convertible to
T and T is copy-constructible. Otherwise it is ill-formed.
I want to get around the copy-constructible requirement, but at the
moment I don't see how: you can't even bind a non-const reference to
a non-copy-constructible rvalue.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk