J
johanatan
Does anyone know the reasons for the lack of an implicit casting
operator in any greater depth than:
A. Automatic conversion is believed to be too error prone.
(from the FAQ at the bottom of: http://www.boost.org/libs/smart_ptr/shared_ptr.htm)
Can anyone say specifically what about the implicit conversion would
be dangerous? I can think of a few things that would require care
about usage of smart pointers with implicit conversions, but nothing
that I would consider 'error-prone'.
In any language, there are implications and C++ certainly has its fair
share of other implicit behaviors.
operator in any greater depth than:
A. Automatic conversion is believed to be too error prone.
(from the FAQ at the bottom of: http://www.boost.org/libs/smart_ptr/shared_ptr.htm)
Can anyone say specifically what about the implicit conversion would
be dangerous? I can think of a few things that would require care
about usage of smart pointers with implicit conversions, but nothing
that I would consider 'error-prone'.
In any language, there are implications and C++ certainly has its fair
share of other implicit behaviors.