Re: c++ operator << support for debug()()

From: Robert Collins <robertc@dont-contact.us>
Date: 12 Jul 2003 16:42:46 +1000

On Thu, 2003-07-10 at 03:42, Serassio Guido wrote:
> Hi Robert,
>
> At 01.53 09/07/2003, Robert Collins wrote:
>
> >On Wed, 2003-07-09 at 03:10, Serassio Guido wrote:
> >
> > > >Now, if the non-gcc port maintainers can check that the debug test-case
> > > >runs ok, we can start converting as we go..
> > >
> > > As You know the 3.0 Windows port doesn't build on MS Visual Studio from
> > > February.
> >
> >Doh. gotta do something about that.
>
> The problem is still the same:
>
> Compiling...
> auth_basic.cc
> 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

Hmm, I'm not quite sure which error from the quoted page is the cause.
But:
http://robotics.jpl.nasa.gov/people/jack/ndoc/rwdocs/toolread
has a interesting quote:
"2. MSVC 5.0 has difficulty resolving overloaded functions in
templatized
classes. If you compile a templatized class and you run into an error message
such as:

  rwfix.cpp(60) : error C2244: 'index' : unable to resolve function overload

then try moving the body of the member function into the class declaration.
"

You could try the same - move the function bodies for the two errors
inline.

> c:\work\nt-3.0\src\memobject.h(110) : error C2639: compiler generated
> default constructor required by unnamed class

This i can fix, it looks like - yet another- missing piece of the MS
compiler. I'll check in a probable fix in a couple of minutes.

> This are caused by know MS VC++ standard compliance problems:
>
> http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b243451
>
> But I don't know how to work around the problem.

> MS VisualStudio seems to be a valid C compiler, but for C++ (and MS .NET
> C++ too ...) is a big disaster .....

It sure looks it. Is there anything that MSVC gives us that the mingw
port doesn't?

Rob

-- 
GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.

Received on Sat Jul 12 2003 - 00:43:01 MDT

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