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 libstdc++/12961] Problem with generic complex constructor


------- Additional Comments From Yves dot Renard at gmm dot insa-tlse dot fr  2003-11-10 11:18 -------
(In reply to comment #3 and  #4)

Ok, this means that 
float x;
does not initialize x, but
float x = float();
does initialize x to zero.

and  this is the same between
float v[56]  // does not initialize v
and
std::vector<float> v(56); // does initialize each component of v


This is a little bit strange to me but I suppose this is the norm.

Anyway, thank you very much for the information.




-- 


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


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