C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-109
VERSION2
°
Namespaces
°
The bool type
°
The wchar_t type
°
Array new and delete
°
Run-time type identification (RTTI)
°
New-style casts (static_cast, reinterpret_cast, and const_cast)
°
Explicit instantiation of templates
°
Support of partial specialization of templates
°
Support of extern inline functions
°
enum types are considered to be nonintegral types
These language features are part of the proposed C++ standard introduced by the
Working Paper for Draft Proposed International Standard for Information Systems
– Programming Language C++, 2 December 1996, X3J6/96-0225 WG21/N1043.
If you want to use any of these VERSION2 features in an application originally
compiled with any pre-D45 RVU of the TNS/R native C++ compiler, you must
recompile and relink all modules of the program using the VERSION2 directive.
Object files compiled using VERSION2 take advantage of the features available
beginning at the D45 RVU and are incompatible with object files compiled using
earlier or later versions of the native C++ compiler.
°
If you compile an application composed of multiple modules, you must compile
all modules using the same version directive.
For example, if you use the VERSION2 directive to compile any module of a
program, you must compile all modules of the program using the VERSION2
directive.
°
The linkers issue an error or warning if you attempt to link several C++
modules that were compiled with different version directives.
°
You can disable version checking by designating a loadfile CPPNEUTRAL using
a linker utility. For more details, see the eld Manual, the ld Manual, or the nld
Manual.
You must use the VERSION2 command-line directive to use these middleware
products:
°
Version 2 of the Standard C++ Library. See Section 5, Using the Standard C++
Library.
°
Version 7 of Tools.h++. See Section 6, Accessing Middleware Using HP C and
C++ for NonStop Systems
VERSION2 supports IEEE floating-point format.
VERSION2 supports Version 7 of Tools.h++ and version 2 of the Standard C++
Library.)