|
Boost Users : |
Subject: [Boost-users] multi_array with user defined types?
From: Suresh Kumar (suresh.amritapuri_at_[hidden])
Date: 2010-09-16 22:02:16
Hi
To use multi_array with user defined types, is there any restriction on the
user defined types? When I tried compiler generates so many error messages
like this:
My definition is like this:
typedef boost::multi_array<score, 2> array_type; //score is defined as a
structure
typedef array_type::index Index;
Error messages:
/usr/include/boost/multi_array/subarray.hpp:238: error: const struct score
has no member named num_dimensions
/usr/include/boost/multi_array/subarray.hpp:239: error: const struct score
has no member named shape
/usr/include/boost/multi_array/subarray.hpp:239: error: const struct score
has no member named shape
scoreAnalysis.cpp:34: instantiated from here
/usr/include/boost/multi_array/subarray.hpp:242: error: const struct score
has no member named begin
/usr/include/boost/multi_array/subarray.hpp:242: error: const struct score
has no member named end
thanks
suresh
-- R Suresh Kumar, http://www.ee.ucr.edu/~sramachandranna Sarve bhavantu sukinaha (May everyone be happy) Sarve santu niramiyaha (May everyone be without affliction) Sarve bhadrani pashyantu (May everyone see only goodness) Ma kashchit dukha bhak bhavet (Let none be the victim of suffering)
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