------- Comment #3 from gdr at cs dot tamu dot edu  2010-05-22 15:32 -------
Subject: Re:  [C++0x] std::complex vs. initialization lists

"paolo dot carlini at oracle dot com" <gcc-bugzi...@gcc.gnu.org> writes:

| Jason, can you have a look to the errors due to the ambiguous overloading
| pointed out by Benjamin? Happen for this type of copy initialization:
| 
|   std::complex<value_type> z4 = {1.1, 2.2};
| 
| where value_type is either float, double or long double. I'm not at all sure
we
| are supposed to accept that in C++0x...

if this ambiguity has anything to do with the constructors for
_Complex T, I think we can remove them and instead define a
free-standing function that would do the conversion with reinterpret
casts. 


-- 


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

Reply via email to