Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

String package - not supported; use basic_string package (CrUn249)

IO Impacts

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

C/C++ StructuresString C/C++ Header FilesString.h C/C++ Header Filesstring.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
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.