From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2005-08-17 09:05:59
David Abrahams wrote:
> > David Abrahams wrote:
> >> > Related your mentioning of incoming implicit
> conversions: where do
> >> > you think these may take place? Do I miss something?
> >> simple_future<int> f1 = bind(slow_fac, 4);
> >> This won't work if the single-argument ctor for simple_future<int>
> >> used here is marked explicit, so I conclude that it is not.
> > The constructor was intended to be non-explicit, just to allow for
> > such implicit conversions from any nullary functor. Is that
> too dangerous?
> Not necessarily, by itself.
I thought so :-P
> However, you also have outgoing
> implicit conversions. The combination is very dangerous.
I agree with that. Please forget about the outgoing explicit conversions.
These will be removed for sure.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk