Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-07-21 10:54:32


Oleg Abrosimov wrote:

> my fault, sorry. it should be
>
> class base {};
> class child : public base {};
>
> child c;
> boost::reference_wrapper<base> bref = boost::ref(c);

This compiles if I make the reference_wrapper constructor implicit. I wonder
why we made it explicit (in TR1 as well). Probably out of habit. On the
other hand, I can't think of any potential problems that an implicit
constructor could have caused.

Thoughts?


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