DIGITAL C++
Using DIGITAL C++ for DIGITAL UNIX Systems


Previous Contents Index

7.4.4 Upgrading from the DIGITAL C++ Class Library Complex to the ANSI Complex Class

This section explains how to upgrade from the pre-ANSI DIGITAL C++ complex library to the current DIGITAL C++ standard complex library.

In the ANSI library, complex objects are templatized on the type of the real and imaginary parts, the pre-ANSI DIGITAL C++ library, complex objects are not templatized. The pre-ANSI library assumes the type is double, whereas the new library provides specializations for float, double, and long double as well as allowing users to specialize on their own floating point types.

Also note that mathematical error checking is not supported in the ANSI library. Users who rely on detection of underflow, overflow, and divide by zero should continue using the pre-ANSI DIGITAL C++ complex library.

The following is a detailed list of important changes:

7.4.5 Upgrading from the DIGITAL C++ IOStreams library to the DIGITAL C++ Standard Library

This section explains how to upgrade from the pre-ANSI DIGITAL C++ IOStreams library to the ANSI DIGITAL C++ IOStreams library. In this section, pre-ANSI IOStreams refers to versions of the IOStreams library found in the DIGITAL C++ Class Library; ANSI IOStreams refers to versions found in the DIGITAL C++ Standard Library.

There are a number of differences between the pre-ANSI and ANSI IOstream library. One major difference between the pre-ANSI and ANSI IOstream library is that the ANSI library is templatized on the object input/output on which operations are being performed. In the pre-ANSI library, IOStreams has no templates. The ANSI library also provides specializations for char and wchar_t.

Important differences are as follows: