Opened 12 years ago

Closed 12 years ago

#4173 closed Bugs (duplicate)

bind/placeholders.hpp workaround for multiply defined anon namespace broken in gcc 4..1

Reported by: joequant@… Owned by: Peter Dimov
Milestone: Boost 1.43.0 Component: bind
Version: Boost 1.39.0 Severity: Problem
Keywords: Cc:

Description

in bind/placeholders.hpp there is a workaround for compiled headers sharing anonymous name space information causing multiply defined errors with placeholders

see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29085

Unfortunately the ifdef for activating the workaround in boost/bind/placeholders.hpp is incorrect as the bug was fixed in gcc 4.2 and still exists in gcc 4.1

The check

defined(GNUC) && (GNUC * 100 + GNUC_MINOR == 400)

should be replaced with

defined(GNUC) && (GNUC * 100 + GNUC_MINOR < 420)

Change History (1)

comment:1 by Steven Watanabe, 12 years ago

Resolution: duplicate
Status: newclosed

Duplicates #4172

Note: See TracTickets for help on using tickets.