Opened 9 years ago

Closed 4 years ago

#9540 closed Bugs (fixed)

std.test: ambiguity std::pair vs. std::tuple

Reported by: dani@… Owned by: James E. King, III
Milestone: Boost 1.69 Component: assign
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

Seen with multiple compilers which support C++11's newly introduced std::tuple. Rather than pulling just the required entities from namespace 'std', the full namespace is pulled in instead.

For example, vc11 fails like this:

std.cpp
std.cpp(154) : error C2872: 'tuple' : ambiguous symbol
        could be 'std.cpp(78) : std::pair<_Ty1,_Ty2> tuple'
        with
        [
            _Ty1=std::string,
            _Ty2=int
        ]
        or 'VC\INCLUDE\utility(73) : std::tuple'

Change History (5)

comment:1 by dani@…, 9 years ago

comment:2 by James E. King, III, 4 years ago

Owner: changed from Thorsten Ottosen to James E. King, III

comment:3 by James E. King, III, 4 years ago

Status: newassigned

comment:4 by James E. King, III, 4 years ago

https://github.com/boostorg/assign/pull/21

The source repo/branch in PR #2 is no longer available.

comment:5 by James E. King, III, 4 years ago

Milestone: To Be DeterminedBoost 1.69
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.