Fwd: Bug in unbounded_array assign operator?
Sebastian Krysmanski <[email protected]>
| Newsgroups | gmane.comp.lib.boost.ublas |
|---|---|
| Message-ID | <CAGAdeZGUeW-WpYpGstn4=Aw2Ts4PPUeD1rXc0y0tzUGgmw4VJw@mail.gmail.com> |
Hi, I'm currently trying to debug a project that's not mine. I have a basic understanding of C/C++ (do most work in C# though). Anyway, I stumbled over an error in the assign operator of unbounded_array: I get an "invalid null pointer" error when the source (rhs) array is empty (size_ = 0). In this case (as far as I can tell) "resize()" will set "data_ = NULL" which triggers the error in "std::copy()". There should be a check so that "std:copy()" isn't called when the source array is empty, right? (file "boost/numeric/ublas/storage.hpp" lines 200 - 206 in the current trunk). Cheers Sebastian _______________________________________________ ublas mailing list [email protected] http://lists.boost.org/mailman/listinfo.cgi/ublas Sent to: [email protected]