Greetings Yan, Only multi_arrays with the same size can be assigned to each other. You must explicitly resize B before trying to assign A to it. Cheers, ron On Jun 10, 2005, at 10:31 AM, Yan Zhang wrote: ArialI’m testing multi_array with a simple example: Arial  Courier New  0000,0000,FFFFtypedef boost::multi_array<<0000,0000,FFFFdouble, 3> array; Courier New  array A(boost::extents[3][4][2]); Courier New0000,8080,0000  Courier New  A[0][0][0] = 3.14; Courier New   Courier New  array B; Courier New  B = A; Courier New  Courier NewWhen execute the last statement B=A, you encounter assertion: Courier New  Courier New    assert(std::equal(other.shape(),other.shape()+0000,0000,FFFFthis->num_dimensions(), Courier New                      0000,0000,FFFFthis->shape())); Courier New  Courier Newin file multi_array_ref.hpp (line 476). I used VC++ 7.1 with debug build. Please advice. Courier New  Arial  _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users