|
Boost : |
From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-07-17 15:48:22
Well it looks like 'compound literals' that are supported by ISO C99.
Comeau, BCC and most likely VC++ are erroneous.
"David B. Held" <dheld_at_[hidden]> wrote in message
news:ah4fer$qtv$1_at_main.gmane.org...
> "Philippe A. Bouchard" <philippeb_at_[hidden]> wrote in message
> news:ah4d08$jgi$1_at_main.gmane.org...
> > [...]
> > Well whether the gcc 3.0 is wrong or the syntax allows initialization of
> > dynamic objects;
>
> bcc 5.5.1 reports:
>
> [C++ Error] ice.cpp(32): E2108 Improper use of typedef
> 'squad_ptr<A>::element_type'
>
> Comeau 4.3.0 reports:
>
> "14521.c", line 148: error: expected an expression
> squad_ptr<A> p = new
> squad_ptr<A>::element_type((squad_ptr<A>::element_type) {A(1, 2, 3),
> squad_ptr<A>::counter_type()});
>
> I didn't try VC++, but I suspect it will also not like it.
>
> Dave
>
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk