Subject: [Boost-bugs] [Boost C++ Libraries] #4230: [Patch] Fix missing/broken friend function definitions in class templates
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-17 19:40:42
#4230: [Patch] Fix missing/broken friend function definitions in class templates
--------------------------+-------------------------------------------------
Reporter: dgregor | Owner: igaztanaga
Type: Patches | Status: new
Milestone: Boost 1.43.0 | Component: interprocess
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
We turned on better checking for in-class friend function definitions in
Clang, instantiating them when the class templates containing those
friends are instantiated (see C++98/03 [temp.friend]p5). This found some
breakage in the Interprocess library, where an obvious "operator==" is
missing (it's used via an in-class friend function definition) and a
swap() function defined as an in-class friend function could never be
compiled.
I've attached a patch that fixes both problems.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4230> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC