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++/13121] Inserting struct with valarray in map fails


------- Additional Comments From bangerth at dealii dot org  2003-11-19 15:04 -------
That might well be that the standard is strange, but that's the way it is
and I believe it is that way for a good reason.

In your case it's easy to fix the problem by having an assignment
operator in your class that first sets the valarray to the right
size before copying contents.

W.

-- 


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


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