mirror of
https://github.com/boostorg/multi_array.git
synced 2026-02-01 20:52:09 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user