Added support for default constructed multi_arrays:

- default public constructor for multi_array
- default protected constructors for multi_array_ref and const_multi_*
- fixed a bug in index_range regarding degenerate dimiensions.
- Added tests to resize.cpp and constructors.cpp.


[SVN r18111]
This commit is contained in:
Ronald Garcia
2003-03-27 20:12:32 +00:00
parent f2d6737f50
commit 0de8b74284
5 changed files with 35 additions and 2 deletions

View File

@@ -52,6 +52,11 @@ test_main(int, char*[])
int strides[] = { 9, 3, 1 };
size_type num_elements = 27;
// Default multi_array constructor
{
boost::multi_array<double, 3> A;
}
// Constructor 1, default storage order and allocator
{
boost::multi_array<double, 3> A(sizes);