|
Boost : |
From: williamkempf_at_[hidden]
Date: 2001-03-15 17:18:08
--- In boost_at_y..., kevin_vanhorn_at_n... wrote:
> --- In boost_at_y..., Doug Gregor <gregod_at_r...> wrote:
>
> > namespace std {
> > import ::ptrdiff_t;
> > }
>
> According to the standard, user code can't add new names to
> the std namespace. (And don't you mean "using ::ptrdiff_t"?)
In this case the code is non-portable (but it's supposed to be non-
portable) but is safe to do. This "hack" has been used numerous
times in Boost to handle libraries that don't properly place the C
stuff in std.
Bill Kempf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk