Boost logo

Boost Users :

From: Manuel.Yguel_at_[hidden]
Date: 2006-07-10 16:17:12


Hi,
is there any reason to refuse a resize method for multi_array that accept a C
array as parameter ?
As long as the resize method just works if the boost::extents parameter has the
same dimension as the array to be resized a call like that:

    typedef boost::multi_array<double, 3> array_type;
    array_type A( boost::extents[3][4][2] );

    ---> A.resize( {6;5;2} );

could be understood as:
    A.resize( boost::extents[6][5][2] );

without any ambiguity, am I wrong ?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net