Re: MSVC C++ problems

From: Robert Collins <robertc@dont-contact.us>
Date: 16 Jul 2003 16:40:29 +1000

On Wed, 2003-07-16 at 06:43, Serassio Guido wrote:
> Hi Robert,
>
> Il 22.31 14/07/2003 Robert Collins ha scritto:
>
>
> >On Tue, 2003-07-15 at 04:46, Serassio Guido wrote:

> acl.cc
> c:\work\nt-3.0\src\acl.cc(348) : error C2059: syntax error : 'new'

Fixed, committed. The next few are cause by this. ANOTHER MSVC not
liking pointer construction. Bah.

> c:\work\nt-3.0\src\acl.cc(693) : error C2664: 'delete' : cannot convert
> parameter 1 from 'const class ACLList *const ' to 'void *'
> Conversion loses qualifiers
> c:\work\nt-3.0\src\acl.cc(716) : error C2664: 'delete' : cannot convert
> parameter 1 from 'const class acl_access *const ' to 'void *'
> Conversion loses qualifiers

This is (AFAIK) wrong. Can you see if MS have anything to say on this?

I've just taken the time to dig up the C++ standard on delete, and my
deleteSelf idiom is unneeded - BUT, I don't know how many compilers are
standards compliant in this respect...
So, I'll put a little test program together, and we can see what occurs,
on gcc 2.95+, gcc3.3, MSVC etc. The OS2 port (and any other pre-egcs
only gcc environments) may need special testing too.

Rob

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

Received on Wed Jul 16 2003 - 00:40:35 MDT

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