// intelTest.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "boost/test/minimal.hpp" #include "boost/multi_array.hpp" #include using namespace std; int test_main(int,char*[]) { typedef boost::multi_array marray; int A_data[] = { 0,1,2,3, 4,5,6,7, 8,9,10,11, 12,13,14,15, 16,17,18,19, 20,21,22,23 }; // resize through the extent_gen interface { marray A(boost::extents[2][3][4]); A.assign(A_data,A_data+(2*3*4)); A.resize(boost::extents[4][3][2]); } return boost::exit_success; }