Boost logo

Boost :

From: Stefan Slapeta (stefan_at_[hidden])
Date: 2004-02-09 10:28:18


David Abrahams wrote:

> VC++ and CodeWarrior have different kinds of problems with it from
> Comeau/strict. I am hoping that they are wrong, but I am not enough
> of a core language jock to make a determination on which of these
> compilers is correct (if any).
>

VC 7.1 fails to compile test 15:

>
> std::cout << " ------ test 15, pass const lvalue by-value ------- " << std::endl;
> sink(z7);
>

error C2664: 'sink' : cannot convert parameter 1 from 'const X' to 'X'
No copy constructor available for struct 'X' or constructor attempts to
perform illegal conversion to non-__gc reference

IMFO, this is a compiler defect - I'll report it to Microsoft.

br, Stefan

----------------------------------------------
Stefan Slapeta
Vienna / Austria
http://www.slapeta.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk