Opened 7 years ago

Closed 7 years ago

#4230 closed Patches (fixed)

[Patch] Fix missing/broken friend function definitions in class templates

Reported by: dgregor Owned by: igaztanaga
Milestone: Boost 1.45.0 Component: interprocess
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:


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.

Attachments (1)

boost-interprocess-fixes.patch (1.8 KB) - added by dgregor 7 years ago.
Patch to fix two problems with Boost.Interprocess

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by dgregor

Patch to fix two problems with Boost.Interprocess

comment:1 Changed 7 years ago by igaztanaga

  • Milestone changed from Boost 1.43.0 to Boost-1.45.0
  • Resolution set to fixed
  • Status changed from new to closed

Fixed for Boost 1.45 in release branch

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain igaztanaga.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.