Re: MSVC C++ problems (was Re: c++ operator << support for debug()())

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Sat, 12 Jul 2003 19:45:49 +0200

Hi Robert,

At 19.15 12/07/2003, Serassio Guido wrote:

>c:\work\nt-3.0\include\refcount.h(98) : error C2061: syntax error :
>identifier 'p_'
> c:\work\nt-3.0\include\refcount.h(93) : while compiling
> class-template member function 'void __thiscall RefCount<class
> ConnStateData>::dereference(const class ConnStateData *)'
>c:\work\nt-3.0\include\refcount.h(100) : error C2227: left of
>'->RefCountDereference' must point to class/struct/union
> c:\work\nt-3.0\include\refcount.h(93) : while compiling
> class-template member function 'void __thiscall RefCount<class
> ConnStateData>::dereference(const class ConnStateData *)'
>c:\work\nt-3.0\include\refcount.h(101) : error C2227: left of
>'->deleteSelf' must point to class/struct/union
> c:\work\nt-3.0\include\refcount.h(93) : while compiling
> class-template member function 'void __thiscall RefCount<class
> ConnStateData>::dereference(const class ConnStateData *)'
>

Solved:

This works:

C const (*tempP_) (p_);

instead of:

C const *tempP_ (p_);

Now I'm fixing some other NULL initialization errors.

When finished, I will post a patch with all changes.

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l.
Via Gorizia, 69 10136 - Torino - ITALY
Tel. : +39.011.3249426 Fax. : +39.011.3293665
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Sat Jul 12 2003 - 11:46:16 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:16 MST