|
Boost Users : |
From: Ronald Garcia (garcia_at_[hidden])
Date: 2006-03-29 11:30:15
Hi Karim,
It is not clear to me exactly what you need, but perhaps the
following code will get you started:
#include "boost/multi_array.hpp"
class my_class {
boost::multi_array<double,2> array_;
public:
my_class(int dim1, int dim2) :
array_(boost::extents[dim1][dim2]) {}
void my_function(boost::multi_array<double,2>& res) { }
};
int main() {
my_class(5,6);
}
HTH,
ron
On Mar 29, 2006, at 5:15 AM, Karim Bakir wrote:
>
>
> Hi,
>
> I develop in VC++, I use boost library,
>
> I have a problem , I use Multi array
> It runs very well however I can't to include a boost array as a
> parameter in a function , the compilation is Ok but at the
> execution it does nothing.
> Too I can't declare a private member as boost multi array.
>
> With boost I can only return a boost multi array , that is OK .
> Declare member variabla as a boost multiarray it said extents
> unexpected
>
> for example:
>
> class Myclass
> {
> public :
>
> void maFonction(boost::multi_array<double, 2> res);
>
> private :
>
> int dim1;
> in t dim2;
>
> typedef boost::multi_array<double, 2> boostResultatNearby
> (boost::extents[dim1][dim2][dim3])
>
> }
>
> Can you help me please
>
> thanks
>
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez
> les tarifs exceptionnels pour appeler la France et l'international.
> Téléchargez la version beta.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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