
21 Jul
2006
21 Jul
'06
2:54 p.m.
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?