Opened 10 years ago

Closed 9 years ago

#7441 closed Bugs (invalid)

boost:::bind ambiguity with std::tr1 (MSVS2008)

Reported by: Mike Cowperthwaite <michael.cowperthwaite@…> Owned by: Peter Dimov
Milestone: To Be Determined Component: bind
Version: Boost 1.51.0 Severity: Problem
Keywords: Cc: viboes

Description

Similar to [3569] and [3073]. I couldn't access the test code at those tickets, so I don't know how similar this code is to theirs.

Attachments (1)

t1.cpp (995 bytes ) - added by Mike Cowperthwaite <michael.cowperthwaite@…> 10 years ago.

Download all attachments as: .zip

Change History (4)

by Mike Cowperthwaite <michael.cowperthwaite@…>, 10 years ago

Attachment: t1.cpp added

comment:1 by viboes, 10 years ago

Cc: viboes added

IMO, this code is requesting the ambiguity and the library can not do anything for you.

comment:2 by michael.cowperthwaite@…, 10 years ago

You may be right, I don't claim C++ expertise; but I thought the global using declaration would provide the desired guidance.

comment:3 by Peter Dimov, 9 years ago

Resolution: invalid
Status: newclosed

Because 'a' is of type std::tr1::function, argument-dependent lookup (ADL) finds std::tr1::bind as well.

Note: See TracTickets for help on using tickets.