Boost logo

Boost :

Subject: Re: [boost] [exception][mpl] Boost.Exception uses unqualified size_t
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2009-11-15 13:38:59

Emil Dotchevski wrote:
> On Sun, Nov 15, 2009 at 12:33 AM, joel <joel.falcou_at_[hidden]> wrote:
>> Emil Dotchevski wrote:
>>> I suspect however that we would have had the same issue even if
>>> object_hex_dump.hpp did #include <stdlib.h>. Isn't it too risky for
>>> mpl to define its own size_t?
>> Maybe it's a naive question but, isn't it <cstddef> that should be included
>> to get size_t
>> in std ?
> It is quite common for CPP files to include C library headers which
> often #include <stddef.h>. So, yes, <cstddef> is the correct header to
> include for C++ programs but <stddef.h> should also work. Right?

If you're using std::size_t then no, stddef.h will not work.

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