Boost logo

Boost Users :

Subject: Re: [Boost-users] ptrdiff_t
From: Stefan Strasser (strasser_at_[hidden])
Date: 2010-06-23 04:23:03


Zitat von yushang <yusunn_at_[hidden]>:

> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net