Next: overloaded increment and decrement Prev: static data members Up: User Problems Top: Top

3.4. g++ won't accept the placement new syntax.

``I have a program that uses the "placement syntax" of operator new, e.g.

and g++ won't accept it.''

Up until version 2.3.1, g++ accepted an alternate form of the placement syntax, for historical reasons; use

if you are using g++-2.2.2 or older.

As of 2.3.1, g++ finally fixed this, using the standard ARM syntax for "placement new". A few remaining glitches were fixed in 2.3.2. The only remaining problem is with declarators for pointers to functions;

These can be worked around with a typedef: