
17 Aug
2005
17 Aug
'05
1:54 p.m.
"Hartmut Kaiser" <hartmut.kaiser@gmail.com> writes:
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. However, you also have outgoing implicit conversions. The combination is very dangerous. -- Dave Abrahams Boost Consulting www.boost-consulting.com