Re: Another build problems on MS Visual Studio

From: Robert Collins <robertc@dont-contact.us>
Date: 11 Mar 2003 22:01:54 +1100

On Tue, 2003-03-11 at 21:08, Guido Serassio wrote:
> Hi,
>
> Build process stops on MS Visualstudio with the following error:
>
> c:\work\nt-3.0\include\array.h(324) : error C2244:
> 'VectorIteratorBase<C>::*' : unable to resolve function overload
> c:\work\nt-3.0\include\array.h(326) : error C2954: template definitions
> cannot nest
> c:\work\nt-3.0\include\array.h(330) : error C2244:
> 'VectorIteratorBase<C>::->' : unable to resolve function overload
> c:\work\nt-3.0\include\array.h(332) : error C2954: template definitions
> cannot nest

We overload the meaning of operator *:
VectorIteratorBase foo;
*foo <-- we make this return a reference (i.e. int&).
likewise for operator ->.

Does VC++ support overloading operator * and -> ? It should, IIRC.

Rob

-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.

Received on Tue Mar 11 2003 - 04:02:03 MST

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