C/C++ Programmer's Guide (G06.25+)
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
F-1
F MIGRATION_CHECK Messages
Table F-1 lists the warning messages emitted by the native C++ compiler when the
pragmas VERSION2 and MIGRATION_CHECK are specified in the RUN command for
the compiler. Messages listed here are current at time of publication; see the
appropriate VERSION2 headers online for current messages on your system.
Using MIGRATION_CHECK causes the compiler to examine the source file to find
instances of functions from the VERSION2 C++ library that are not supported in the
VERSION3 library. The warning messages highlight elements that need to be examined
and rewritten using the VERSION3 library. The compiler does not generate an object
file when MIGRATION_CHECK is specified.
Code Examples on page F-26 show a “Hello World” C++ program written in VERSION2
code and in VERSION3 code, as well as the MIGRATION_CHECK output for the
VERSION2 code.
For more information, see:
•
pragma MIGRATION_CHECK on page 13-63
•
pragma VERSION3 on page 13-108
Table F-1. MIGRATION_CHECK Warning Messages (page 1 of 25)
No.
Class/Member
Function Name Warnings Displayed Notes
algorithm: VERSION3 header file
User programs should not make direct calls to any of the functions whose names have a
prefix of a double-underscore (__) or a single-underscore (_). These are helper functions for
internal use only. A warning is issued if any of these functions are used.
bitset: VERSION3 header file
1 class bitset 1. ‘bitset (const bitset<N>& rhs)
throw((out_of_range,
invalid_argument))' is not
supported in version 3.
2.'bool valid_position (size_t pos)
const throw()' is not supported in
version 3.
3.'unsigned long index (size_t pos)
const throw()' is not supported in
version 3.
4.'const size_t bitset_size' is is not
supported in version 3.
5. 'bool valid_position(size_t)' is not
supported in version 3 library.
6. 'unsigned long index(size_t)' is not
supported in version 3 library.