|
Boost Users : |
From: Jens Theisen (jens.theisen_at_[hidden])
Date: 2005-01-11 09:26:16
Daryle Walker wrote:
> The forwarding problem looks like a C++ "flaw" that can't be solved
> trivially. So I'm not going to pretend to have a solution. Take a look at
> <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1385.htm> for a
> description of the problem. (I saw the link in another thread.)
I have read this paper; I just though that the way the forwarding
problem in base_from_member is addressed is not the best solution.
> I never checked how the constructors work with reference-based arguments,
> either const or non-const. (I guess that const references could work since
> they can take conversion-generated temporaries.)
Yes. The usual constructor wrappers I have seen so far therefore take
const&. However, I do not know if there might be any other subtle catches.
Cheers,
Jens
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net