Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#6453 closed Bugs (fixed)

Compile error due to `deduce_char_traits` ambiguity

Reported by: Michel Morin <mimomorin@…> Owned by: Antony Polukhin
Milestone: To Be Determined Component: lexical_cast
Version: Boost Development Trunk Severity: Problem
Keywords: Cc: antoshkka@…

Description

The following code fails to compile due to deduce_char_traits ambiguity:

#include <iostream>
#include <string>

#include <boost/container/string.hpp>
#include <boost/lexical_cast.hpp>

int main (int argc, char* argv[])
{
    std::string str;
    boost::container::string str_;
    
    std::cout << boost::lexical_cast<std::string>(str_) << std::endl;
    
    return 0;
}

Change History (5)

comment:1 by Antony Polukhin, 11 years ago

Owner: changed from nasonov to Antony Polukhin
Status: newassigned

comment:2 by Antony Polukhin, 11 years ago

Cc: antoshkka@… added

comment:3 by Antony Polukhin, 11 years ago

Test case added in r76817

comment:4 by Antony Polukhin, 11 years ago

Resolution: fixed
Status: assignedclosed

(In [76818]) FIxes #6453 (compile error due to deduce_char_traits ambiguity)

comment:5 by Antony Polukhin, 11 years ago

(In [76887]) Merge from trunk (fixed #6251, fixed #6453, disabled some optimizations for sunCC #6462)

Note: See TracTickets for help on using tickets.