Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-04-05 18:39:06


It's important to put the library name in your subject line if you
want to get its maintainer's attention.

Karim Bakir <rimbak_at_[hidden]> writes:

>
> Hi ,
>
> I have a problem, I can' use boost multi array as private member,
> I have the mistake: "unexpected extents"
> I can only return a boost multi array in my function
>
> Thanks
>
> // KOKO.h: interface for the KOKO class.
> //
> //////////////////////////////////////////////////////////////////////
> #if !defined(AFX_KOKO_H__3E4A2230_0446_43C2_BD69_6FF9C2614C02__INCLUDED_)
> #define AFX_KOKO_H__3E4A2230_0446_43C2_BD69_6FF9C2614C02__INCLUDED_
> #if _MSC_VER > 1000
> #pragma once
> #endif // _MSC_VER > 1000
> #include "boost/multi_array.hpp"
> #include <cassert>
>
> using namespace std;
> using namespace boost;
> class KOKO
> {
> typedef boost::multi_array<double,3> array_type_3dd;
> public:
> KOKO();
> virtual ~KOKO();
>
> boost::multi_array<double,3>MiseEnFormeMatrice3D(vector<double>data,int nbJourSimule, int na, int nbEnergie);
>
>
> private:
> int d1;
> int d2;
> int d3;
> array_type_3d myvector(boost::extents[d1][d2][d3]);
>
>
> };
> #endif // !defined(AFX_KOKO_H__3E4A2230_0446_43C2_BD69_6FF9C2614C02__INCLUDED_)
>
>
> ---------------------------------
> 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

Karim Bakir <rimbak_at_[hidden]> writes:

> Hi
>
> I want to know if it exists in boost multi array a method to empty it.
>
> 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

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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