Boost logo

Boost Users :

From: Joel FALCOU (joel.falcou_at_[hidden])
Date: 2008-06-02 12:50:22

> Why?
I think i'm too deeply rooted into my 'performance' set of mind.
I was about to propose an argument about initilizing vector or array of
complex to be filled, but I forgot the vector(n,value) methods. SO
please disregard this argument.

> they are implicit for float -> double or long double and double to long
> double. In other words, the constructors are explicit when an implicit
> conversion would normally generate a warning for the value type.
OK I see the problem. Is this that problematic that those warning appears ?

> Yes. We ran into this with the Units library. If two different class
> templates define such overloads, then trying to add them is ambiguous.
I see but I think disambiguating the overload by any other means is

Thanks for the discussion. I see now why it's not a clear-cut case.

Research Engineer @ Institut d'Electronique Fondamentale
Université PARIS SUD XI

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at