------- Comment #2 from gzljg at hotmail dot com  2007-10-29 17:00 -------
(In reply to comment #1)
> A couple of quick comments. First, there is nothing special about std::string,
> the same happens with std::vector<char>, for example, because really the issue
> is about multiple constructors. Second, I checked that at least 2 other
> compilers + library behave the same as GCC. In short, I don't think this issue
> is valid, there is a real ambiguity in the user code.
> 

Thanks for Paolo's input. I understand it's nothing to do with std::string,
just because my test case use std::string that causes the error. 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?


-- 


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

Reply via email to