
23 Jun
2010
23 Jun
'10
6:26 a.m.
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