Requirements for C++ programming in a failover environment
In a failover configuration, special consideration must be taken for C++ applications that use the Standard Input/Output facilities of the C++ Standard Library. During a failover event, the standard output and standard error streams are closed by the system software. The error state flags must be cleared by the application afterwards to resume using these streams. Example G-1 shows one method to clear the error state flags.
Example G-1  
if ( !(cout << "Hello World" << endl) ) {
cout.clear(); ...

Get IBM System Blue Gene Solution Blue Gene/Q Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.