Boost logo

Boost :

From: Neal D. Becker (ndbecker2_at_[hidden])
Date: 2004-05-07 09:52:24


Thorsten Ottosen wrote:

>
>
> "Neal D. Becker" <ndbecker2_at_[hidden]> wrote in message
> news:c7fv0m$bs4$1_at_sea.gmane.org...
> | This simple test fails to compile on gcc-3.3.3. Any thoughts?
>
> the tests works with gcc 3.3.1.
>
> | int F (int size) {
> | int a[size];
>
> ^^^^^^
>
> not legal, size must be a constant.
>

variable size array are c99 extension. Supported by g++ (supposedly). IIRC
under consideration for addition to ANSI c++?

Only problem is, I don't know how to write a template that matches a
variable size array.


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