#578 operator<< in dgfparserblocks.hh causes linking errors
Metadata
Property | Value |
---|---|
Reported by | Sven Marnach (sven@pantoffel-wg.de) |
Reported at | Jul 22, 2009 15:24 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Andreas Dedner (A.S.Dedner@warwick.ac.uk) |
Last edited at | Sep 11, 2009 14:24 |
Closed by | Andreas Dedner (A.S.Dedner@warwick.ac.uk) |
Closed at | Sep 11, 2009 14:24 |
Closed in version | Unknown |
Resolution | Fixed |
Comment | made method inline (rev. 5311) |
Description
In dgfparserblocks.hh, there is an implicitly extern definition of
std::ostream &operator<< ( std::ostream &out, const PeriodicFaceTransformationBlock::AffineTransformation &trafo )
This definition must either be made static or moved to dgfparserblocks.cc. The current situation leads to multiple definitions of this operator if the header is used by more than one compilation unit. (Actually, the header cannot be used at all, since one definition of the operator will go to libdgfparser.)