$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] ptrdiff_t
From: yushang (yusunn_at_[hidden])
Date: 2010-06-23 02:26:43
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