Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

type cast problem of C++ in .Net

0 views
Skip to first unread message

jianlin cheng

unread,
Jul 26, 2002, 3:45:30 PM7/26/02
to
We are migrating a big project from VC7.0 from VC6.0, but
we encounter the following type casting problem. The
following code can be compliled by VC6.0 but can't be
compiled by VC7.0.

vector<int *> * pIntPtrVector;

vector<const int *>* pConstIntPtrVector =
reinterpret_cast<vector<const int *> *>(pIntPtrVector);

VC7.0 just can't cast the type of element of vector. Is
there any way to work around this problem?

Thanks a lot.

Leon Finker

unread,
Jul 26, 2002, 4:05:22 PM7/26/02
to
I don't get any errors for this code when compiled in
VC7

"jianlin cheng" <jianli...@yahoo.com> wrote in message
news:21bd01c234dc$ff5cb370$35ef2ecf@TKMSFTNGXA11...

0 new messages