Boost logo

Boost :

From: James Curran/MVP (jamescurran_at_[hidden])
Date: 2002-10-04 08:15:00

"Craig Henderson" <cdm.henderson_at_[hidden]> wrote in message
> 3) the operator<() uses reinterpret_cast<int> to case a pointer to an int.
> b) Shouldn't this be static_cast<>?

    static_cast - value stays the same (is static), but bit image might
changes (eg. int -> float)
    reinterpret_cast - value may change (is reinterpreted), but bit-image
stays the same.

    So, it really wants to be a reinterpret_cast

James Curran  (Personal)   (Professional)   (Day job)

Boost list run by bdawes at, gregod at, cpdaniel at, john at