Opened 9 years ago

Last modified 9 years ago

#9438 new Patches

call of overloaded ‘ignore_unused_variable_warning(...)’ is ambiguous

Reported by: Thomas Hume <thomas.hume@…> Owned by: jsiek
Milestone: To Be Determined Component: concept_check
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Here are two patches that prevent some compilations errors due to ambiguous definitions of 'ignore_unused_variable_warning' (defined by both boost and lemon) under g++ 4.8.2 (works fine with clang 3.3 though).

It simply fully qualify the uses of the function by addind the boost:: namespace specifier before every 'call' in the concept checks.

Changing only the range concepts gave more errors in the concerpt_check library, so patchs for both libraries are provided.

You'll find as supplementary files the preprocessed source that fail to compile with and the error output.

Attachments (4)

range.patch (968 bytes ) - added by Thomas Hume <thomas.hume@…> 9 years ago.
concept.patch (5.9 KB ) - added by Thomas Hume <thomas.hume@…> 9 years ago.
preprocessed.cpp.bz2 (252.4 KB ) - added by Thomas Hume <thomas.hume@…> 9 years ago.
compile_error (17.7 KB ) - added by Thomas Hume <thomas.hume@…> 9 years ago.

Download all attachments as: .zip

Change History (5)

by Thomas Hume <thomas.hume@…>, 9 years ago

Attachment: range.patch added

by Thomas Hume <thomas.hume@…>, 9 years ago

Attachment: concept.patch added

by Thomas Hume <thomas.hume@…>, 9 years ago

Attachment: preprocessed.cpp.bz2 added

by Thomas Hume <thomas.hume@…>, 9 years ago

Attachment: compile_error added

comment:1 by Neil Groves, 9 years ago

Component: rangeconcept_check
Owner: changed from Neil Groves to jsiek

This is patched in Boost.Range and committed to the develop branch. The Boost.Range part of this ticket will be merged into release 1.56.

I have to reassign for the other patch to be applied since I do not have write-access to this library.

Note: See TracTickets for help on using tickets.