critical impact:
String package - not supported; use basic_string package (CrUn249)
Problem description
The String package exists on Tru64 UNIX but not on HP-UX. However, a replacement technology exists in the basic_string package.
The class library String class is pre-ANSI, based on the AT&T C++ Standard Library Extension Release 1.0 dated around 1990. HP-UX does not support this. Identifiers
 String |
 String.h |
 string.hxx |
|
Old behavior
#include <string.hxx>
String s = "Hello, world!";
See also
Solution description
Use the basic_string class to achieve similar results.
The correct way for applications to work with class library String class functions is to use the ANSI basic_string class. Note that the capabilities of the basic_string class may not be exactly the same as the String class. The basic_string class is available on both Tru64 UNIX and HP-UX.
By default, aCC on Itanium®-based systems requires that the ANSI names be qualified with std:: or that the std namespace be specified with a using-declaration or using-directive. Tru64 UNIX does not require that by default.
New behavior
#include <string>
std::string s = "Hello, world!";
See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| IO |
C++ |
any HP-UX 11i version |
critical |
unavailable |
|