
22 Jul
2008
22 Jul
'08
5:23 p.m.
On Tue, Jul 22, 2008 at 11:52, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
If you cast, you're dropping type safety, so you're on your own. A code that performs casting, outside of low-level coding or a few idioms like CRTCP, is a bad thing.
I consider neither boost::implicit_cast<double>(some_int)/another_int to avoid integer division nor using foo(boost::implicit_cast<int*>(0)) to choose the pointer overload instead of the integral one to be "dropping type safety" or "low-level coding".