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

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Sat, 12 Jul 2003 10:42:23 +0200

Hi Robert,

At 08.42 12/07/2003, Robert Collins wrote:

>On Thu, 2003-07-10 at 03:42, Serassio Guido wrote:
>
>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.

Interesting, but, please, do you can give an example, I'm not sure to
understand how make this right.

> > 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.

Ok, I'have just verified that your change works.

> > 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?

MSVC is for the Windows environment something like gcc for Linux: it's the
more available Windows native compiler and for many Windows users is more
simple to use then the "esoteric" ( :-) !!!) MinGW tools, me too like more
to work with MSVC then MinGW.

So I think that we should to try to make Squid 3 compatible with MSVC.

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 - 02:42:41 MDT

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