← Back to team overview

dolfin team mailing list archive

Build error with gcc 4.2.1: LogStream& operator<<() [patch]

 

Patch attached:

changeset:   3382:a435372e25e5
tag:         tip
user:        Jed Brown <jed@xxxxxxxx>
date:        Wed Sep 19 14:28:10 2007 +0200
summary:     Do not rely on implicit injection of friend declarations into namespace.

Attachment: dolfin-jed-20070919.hg
Description: Binary data

According to the GCC man page:

       -ffriend-injection
           Inject friend functions into the enclosing namespace, so that they are visible
           outside the scope of the class in which they are declared.  Friend functions were
           documented to work this way in the old Annotated C++ Reference Manual, and ver‐
           sions of G++ before 4.1 always worked that way.  However, in ISO C++ a friend
           function which is not declared in an enclosing scope can only be found using argu‐
           ment dependent lookup.  This option causes friends to be injected as they were in
           earlier releases.

           This option is for compatibility, and may be removed in a future release of G++.

-- 
Jed Brown        jed@xxxxxxxx        http://59A2.org

Attachment: pgpk84P6SSTWt.pgp
Description: PGP signature