$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-03-13 07:03:43
John Maddock wrote:
> There is a forth option: treat the pointer as a "bag of bytes" and hash
> those bytes, that's completely portable, and no reinterpret_cast is
> required (it's probably overkill as well)
It's portable, but possibly inferior. The implementation may normalize
pointers on reinterpret_cast so that two equal pointers that do not have the
same byte representation reinterpret_cast to the same value.