Boost logo

Boost :

From: AlisdairM (alisdair.meredith_at_[hidden])
Date: 2007-02-04 02:13:45


Christopher Kohlhoff wrote:

> Hmmm, weird. Do you happen to have the relevant section number in the
> standard handy?

OK, I've been chasing this down and it seems the mistake is mine <g>

long-winded excuse:
a while back I used a struct with a const int member as an example for
one of my hobby-horse issues that the C++ language needed simplifying,
until it was pointed out to me this was not legal.

I sat and started at the standard long enough to convince myself that
this person was right, and verified it with the Comeau online compiler.

I repeated both experiments this weekemd, but only get a warning from
Comeau, and the parts of the standard that ban this usage all apply in
certain contexts (such as when used as a base class)

So I withdraw my objection, and will file another bug report with
Borland.

Thanks.

-- 
AlisdairM

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