1 Migration Guide for gcc 3.4

Here is a quick rundown of some of the most basic changes that the migration to gcc 3.4 will require.
BTW, Look for previous Migration Guide for gcc 3.2.

friend declrations

friend declrations require class keyword:
friend Toto;

has to be
friend class Toto;

inline functions have to be implemented

This means you cannot include an .h file containing declarations of inline functions without including also their definition.

abs and fabs

The abs function for doubles is fabs

order of calls to constructors

Take care of the order of calls to constructors in copy constructors. Especially, pure abtract interfaces must be called first. If not, you get an error of this kind:
base class `class IValidity' should be explicitly initialized in the copy constructor

Links

-- AnarManafov - 20 Mar 2005
Topic revision: r2 - 2007-01-29, AnarManafov
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)