22 Jul
2009
22 Jul
'09
10:35 p.m.
John Reid
Resizing an empty array no longer seems to work. My code worked fine with boost 1.38, now it causes an assertion with the latest boost trunk from svn. The code is:
#include
int main( int argc, char * argv[] ) { boost::multi_array< double, 2 > a; a.resize( boost::extents[2][3] ); return 0; }
I updated from svn today.
I think the code creates a view on the old data in order to retain it. The assertion happens because this view is empty.
Regards, John.
It appears to be a bug. See http://www.boost.org/development/tests/trunk/developer/issues_release_.html#... Hopefully it will be fixed soon. I had same problem. I rolled boost/multi_array.hpp back to revision 41257 and it works for me now. Mikhail