From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-07-17 21:30:04


"Robert Ramey" <ramey_at_[hidden]> wrote in message
news:20040718020109.784743197E_at_acme.west.net...
> >Rene Rivera wrote:

> >I'm looking at this and one of the basic problems is that you seem
to
> >assume a variety of things are available in the global namespace,
> >specifically size_t and other std types. Those are easy to fix by
> >specifying std::size_t. But I do have some questions...
>
> >1. Is using an unqualified size_t your intention? And therefore
> >something else is broken?
>
> Wow - its amazing to me I could have come so far and not know that
size_t
> wasn't a built in type or macro - I think it used to be a macro
definition.
> Anyway, I'll qualify this with std::size_t and check that no other
compilers
> complain. If fact, now I can't understand why no other compiler
complained
> since I never included <cstddef>

<Butting in...>

If you include <boost/config.hpp> before <cstddef> then size_t and
ptrdiff_t get put in namespace std for standard libraries which only
define them in the global namespace.

Jonathan