Boost logo

Boost :

From: Adrien Hernot (amh_at_[hidden])
Date: 2000-12-12 03:48:24


I now just upgraded VC++6 to service poke 4, but it still doesnot work.
Does this mean I would have to rewrite my classes definitions to workaround
this buggy software ?

rrrrrrrrrrrr >:-|

thanks anyway,

Adrien

On Mon, Dec 11, 2000 at 08:12:47PM -0500, David Abrahams wrote:
> Adrien,
>
> That's a compiler bug. There's not supposed to be a difference between the
> signatures
> void set(const float f);
> and
> void set(float f);
>
> If you want to work around this bug and keep the parameter const within the
> function body, separate the interface from the implementation:
>
> void set(float f); // declaration
> ...
> void set(const float f) { ; }
>
> Regards,
> Dave


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