Operating System - Linux
1822503 Members
2442 Online
109642 Solutions
New Discussion юеВ

Regarding placement operators

 
rymani
Occasional Advisor

Regarding placement operators

Which aCC version supports 'placement new' and 'placement delete' operators. Currently I'm using the aCC Version 03.37 "aCC: HP ANSI C++ B3910B A.03.37", which is not supporting the same.
If it is available in higher version, any change is needed with the present source code which is compiled in above said aCC version.

Suggestions please.
3 REPLIES 3
rymani
Occasional Advisor

Re: Regarding placement operators

This is machine information

HP-UX B.11.11 U 9000/800
James R. Ferguson
Acclaimed Contributor

Re: Regarding placement operators

Hi:

The version you are running is over 5-years old. I would urge you to update:

http://h21007.www2.hp.com/portal/site/dspp/template.PAGE/page.document/?ciid=2645dec4c7563110VgnVCM100000275d6e10RCRD#b11.11pa

...or for that matter, order the new C/aC++ Developer's Bundle (B9007AA). An evaluation copy is even available:

http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=e9083a7373f021103a7373f02110275d6e10RCRD

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Regarding placement operators

>If it is available in higher version, any change is needed with the present source code which is compiled in above said aC++ version.

This has long since been fixed. It was only a problem if you threw out of a constructor.
The latest version is A.03.80. You can check the Release Notes for the exact version that implemented this: http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=c9083a7373f021103a7373f02110275d6e10RCRD

If you are asking if ALL of your source that works on A.03.37 is compatible with A.03.80, you'll have to try it. If the compiler was fixed to detect errors better, you'll have to fix your source.

Note: There are some cases of binary incompatibility for versions A.03.33 through A.03.50. A warning 1039 will flag them:
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=4a083a7373f021103a7373f02110275d6e10RCRD#faq-compat