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 Integrity Servers: HP aC++/HP ANSI C Release Notes > Chapter 5 Known Problems and Workarounds

Incompatibilities Between the Standard C++ Library Ver. 1.2.1 and the Draft Standard

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

As the ANSI C++ standard has evolved over time, the Standard C++ Library has not always kept up. Such is the case for the times function object in the functional header file. In the standard, times has been renamed to multiplies.

If you want to use multiplies in your code, to be compatible with the ISO/ANSI C++ standard, use a conditional compilation flag on the aCC command line.

For example, for the following program, compile with the command line:

    aCC -D__HPACC_USING_MULTIPLIES_IN_FUNCTIONAL test.c    // test.c    int times;                   //user defined variable    #include <functional>    // multiplies can be used in    int main() {}    // end of test.c

The following flags are now automatically set with A.05.* and A.06.* compilers:

  • -D__HPACC_USING_MULTIPLIES_IN_FUNCTIONAL

  • -D__HPACC_THREAD_SAFE_RB_TREE

  • -D__HPACC_USING_MULTIPLIES_IN_FUNCTIONAL

  • -D__HPACC-FIX_FUNC_ADAPTER_OPERATOR

  • -D__HPACC_FULL_ITERATOR_REL_OPS

  • -D__HPACC_TEMPLATE_PAIR_CTOR

  • -D__HPACC_MEM_FUN_ADAPTOR

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