|
Boost : |
From: James Curran/MVP (jamescurran_at_[hidden])
Date: 2002-10-04 08:15:00
"Craig Henderson" <cdm.henderson_at_[hidden]> wrote in message
news:anhmca$b7t$1_at_main.gmane.org...
> 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
-- Truth, James Curran www.NovelTheory.com (Personal) www.NJTheater.com (Professional) www.aurora-inc.com (Day job)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk