
15 Nov
2009
15 Nov
'09
6:38 p.m.
Emil Dotchevski wrote:
On Sun, Nov 15, 2009 at 12:33 AM, joel <joel.falcou@lri.fr> 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.