I have old code that uses size_t which IIRC comes from cstring.h.
On OS X, I either dont know how to find/use this or it is not available.
What would I replace it with?
I have old code that uses size_t which IIRC comes from cstring.h.
On OS X, I either dont know how to find/use this or it is not available.
What would I replace it with?
The canonical place to find std::size_t
is in <cstddef>
.
I'm fairly sure that this worked for me the last time I was working on OS X.
Edit: Just found an OS X system to test on, not sure the exact system version but the Apple version of gcc 4.0.1 and both size_t
and std::size_t
are valid names of types after #include <cstddef>
.