Paolo Carlini <[EMAIL PROTECTED]> writes: | Jhair Tocancipa Triana wrote: | | >Please consider the program below (backtrace included (gcc 4.0.2 | >(Ubuntu))). The program crashes when doing a std::slice on a valarray | >containing a structure with a string element in it. | > | > | Just wanted to say that this has nothing to do with string specifically, | happens also together with a completely different implementation of | string or, e.g., together with a deque data member. | | I think something is going wrong with types characterized by | ""non-trivial"" constructors, e.g., doing memory allocation from the heap. | | Gaby can you look into this?
yes -- see my other message. I could not read mails before now. The main fault is my thoughtless use of _copy instead of _copy_construct. -- Gaby