|
Boost : |
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-07-22 13:23:15
On Tue, Jul 22, 2008 at 11:52, Mathias Gaunard
<mathias.gaunard_at_[hidden]> 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".
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk