
21 Jul
2010
21 Jul
'10
8:33 p.m.
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