Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP aC++ Version A.01.07 Release Notes: HP Series 9000 > Chapter 1 Features

Migrating from HP C++ (cfront) to HP aC++

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

The compiler lists Errors, Future Errors and Warnings. Expect to see more warnings, errors and future errors reported in your code, many related to standards based syntax. Some migration issues are listed below; for more complete information, refer to the Migrating from HP C++(cfront) to HP aC++ section in the HP aC++ Online Programmer's Guide.

  • The overload resolution for operators has been updated to reflect the latest version of the evolving draft standard. You may see some additional "ambiguous" function error messages displayed.

  • Most frequently reported migration issue: enum x { x1, }; The trailing comma is an error.

  • Changes to temporary creation for rvalues used to initialize return values which are const references now causes:

    Error 652: Exact position unknown; near file, line#.
    Initialization of the result <some const &> requires creating a
    temporary, yet the temporary's lifetime ends with the return from the function.
  • You can bracket your HP aC++ changes with the macro defined by the draft standard. For example:

    #if __cplusplus >= 199707L
    // HP aC++ Code
    #endif // __cplusplus >= 199707L
  • If you are using directed mode instantiation with the cfront based compiler, an awk script can be used to convert your file to an instantiation file that uses the explicit instantiation syntax. Note that explicit instantiation syntax can be used to instantiate a template and all of its member functions, an individual template function, or a template class's member function. The HP aC++ Online Programmer's Guide contains an example script.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.