|
Boost : |
From: David B. Held (dheld_at_[hidden])
Date: 2002-07-17 14:13:21
"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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk