This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33940] call of overloaded 'basic_string(const<anonymous class>&)' is ambiguous for a template member function



------- Comment #3 from pcarlini at suse dot de  2007-10-29 17:33 -------
(In reply to comment #2)
...What I was
> confused is why the compiler is ambiguious about the T()'s constructor, _even_
> I hard coded to use "std::string()" in the example?

That doesn't matter because T is deduced basing on the type we are attempting
to *convert to* and since there are many options, one for each constructor, the
whole thing remains ambiguous.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]