Boost logo

Boost :

Subject: Re: [boost] [ref] incompatibility with c++0x
From: David Abrahams (dave_at_[hidden])
Date: 2010-07-21 16:33:53


At Wed, 21 Jul 2010 15:45:08 -0400,
Andy Venikov wrote:
>
> The latest c++0x FCD defines the single argument constructor for
> reference_wrapper(T &) as non-explicit.
>
> The boost version is explicit. Was it done on purpose? Should it be
> changed to non-explicit?
>
> BTW, I think original standard drafts did have it as explicit since gcc
> 4.3.3 still defines it as explicit. But in the final draft (as in gcc
> 4.5) it's non-explicit.
>
> I know that boost::reference_wrapper is not the same as
> std::reference_wrapper, but still it would be nice to have some uniformity.

I guess it usually doesn't matter because you should use boost::ref(x)
to create these objects anyway?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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