Re: Residual HAED C++ problems on MS VisualStudio

From: Robert Collins <robertc@dont-contact.us>
Date: 03 Aug 2003 19:43:40 +1000

On Sat, 2003-08-02 at 19:34, Serassio Guido wrote:
> Hi Robert,
>
> There are still some residual HEAD C++ problem on MS VisualStudio:
>
> comm.cc
> c:\work\nt-3.0\src\comm.cc(172) : error C2639: compiler generated default
> constructor required by unnamed class

Fixed, I think.

> MemObject.cc
> c:\work\nt-3.0\src\memobject.cc(252) : error C2667: 'for_each' : none of 2
> overload have a best conversion
> c:\work\nt-3.0\src\memobject.cc(252) : error C2668: 'for_each' : ambiguous
> call to overloaded function
> c:\work\nt-3.0\src\memobject.cc(285) : error C2667: 'for_each' : none of 2
> overload have a best conversion
> c:\work\nt-3.0\src\memobject.cc(285) : error C2668: 'for_each' : ambiguous
> call to overloaded function

Looks like another limitation. taking the first one: there is a for_each
template that is explicitly for dlink_list. You might try
for_each<StoreClientsStats>(clients, statsVisitor);

If that doesn't help, you could try turning the dlink_list for_each into
a partial specialisation of the more generic two-class-parameter, two
parameter template for_each.

> client_side_request.cc
> c:\work\nt-3.0\src\client_side_request.cc(677) : error C2440: '?' : cannot
> convert from 'class RefCount<class ConnStateData>' to 'bool'
> No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> c:\work\nt-3.0\src\client_side_request.cc(677) : fatal error C1903: unable
> to recover from previous error(s); stopping compilation

Fixed by Pawels recent patches.

Rob

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

Received on Sun Aug 03 2003 - 03:43:31 MDT

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