|
Boost : |
From: Noel Yap (Noel.Yap_at_[hidden])
Date: 2003-05-03 23:20:20
"Justin M. Lewis" wrote:
> I don't know where to find docs for dumb_ptr, but for ref
dumb_ptr<> is something I've made up. You might've missed it the first
time I suggested it in this thread.
> reference_wrapper(T&);
>
> The constructor isn't explicit so you can have implicit type conversions at
> the point of invocation, so there's not necessarily any information given at
> the point of invocation. Plus there is a cast operator, which, like I said,
> I removed from c_out and c_in_out to prevent it from being implicitly cast
> into a function call that doesn't take a c_out or c_in_out as a param to
> prevent confusion.
>
> Keep in mind, the point of this is to have the compiler enforce decorating
> the params to functions.
Then all you really need is one reference wrapper that does what ref<>
does without the implicit type casts.
Noel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk