
Hi dear all, I'm using boost with VC , when using array.hpp compiler complain the following error: 'ptrdiff_t' : is not a member of 'std' I searched ptrdiff_t definition in all files , found it defined in crtdefs.h which is not in namespace std. But array class has this declaration: typedef std::ptrdiff_t difference_type; which cause compiler's complaining , a work arround is to get rid of the std namespace typedef ptrdiff_t difference_type; but I found there are a lot of files to change , apparently this is a tough task , any good suggestion ? thanks in advance

Zitat von yushang
Hi dear all, I'm using boost with VC , when using array.hpp compiler complain the following error: 'ptrdiff_t' : is not a member of 'std' I searched ptrdiff_t definition in all files , found it defined in crtdefs.h which is not in namespace std. But array class has this
#include <cstddef> array should include it though, if it doesn't please file a bug report: http://www.boost.org/support/bugs.html

Stefan Strasser wrote:
Zitat von yushang:
I'm using boost with VC , when using array.hpp compiler complain the following error: 'ptrdiff_t' : is not a member of 'std' I searched ptrdiff_t definition in all files , found it defined in crtdefs.h which is not in namespace std. But array class has this
#include <cstddef>
array should include it though, if it doesn't please file a bug report: http://www.boost.org/support/bugs.html
ptrdiff_t *is* a member of 'std'. And boost/array.hpp *does* #include <cstddef>. At least at http://www.boost.org/doc/libs/1_43_0/boost/array.hpp So yushang, do you really think it's a Boost bug? Kind regards, Niels -- Niels Dekker http://www.xs4all.nl/~nd/dekkerware Scientific programmer at LKEB, Leiden University Medical Center
participants (3)
-
Niels Dekker - address until 2010-10-10
-
Stefan Strasser
-
yushang