Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2007-03-14 17:01:31


Bugs item #1681011, was opened at 2007-03-14 14:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1681011&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: multi_index
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Joaquín M López Muñoz (joaquintides)
Summary: multi_index, multi_array collision

Initial Comment:
I'm not the most experienced user, so pl. excuse me if I'm just missing something.

venkyn_at_[hidden]

-------test.cc--------

/*
simply including this causes the following errors on compilation
*/
#include <boost/multi_index_container.hpp>

#include <boost/multi_array.hpp>

int main()
{
/* this is one of the examples in the Boost multiarray
documentation
*/
  typedef boost::multi_array<double, 3> array_type;
  array_type A( boost::extents[3][4][2] );
  A[0][0][0] = 3.14;
}

----------
Trying to compile this:

$> /home/sapo/software/compilers/gcc/gcc-3.2.3-install/bin/g++ -I/home/sapo/software/compilers/gcc/gcc-3.2.3-install/include -I/home/sapo/software/boost//include/boost-1_33_1 -L/home/sapo/software/compilers/gcc/gcc-3.2.3-install/lib -lm -o test src/test.cc
/home/sapo/software/boost/include/boost-1_33_1/boost/multi_array/multi_array_ref.hpp: In
   member function `boost::const_multi_array_ref<T, NumDims, T*>::reference
   boost::multi_array_ref<T,
   NumDims>::operator[](boost::const_multi_array_ref<T, NumDims, T*>::index)
   [with T = double, unsigned int NumDims = 3]':
src/test.cc:12: instantiated from here
/home/sapo/software/boost/include/boost-1_33_1/boost/multi_array/multi_array_ref.hpp:515: no
   matching function for call to `boost::const_multi_array_ref<double, 3,
   double*>::access(boost::type<boost::detail::multi_array::sub_array<double,
   2> >, index&, double*, const size_type*, const index*, const index*)'
/home/sapo/software/boost/include/boost-1_33_1/boost/multi_array/subarray.hpp: In
   member function `boost::detail::multi_array::const_sub_array<T, NumDims,
   T*>::reference boost::detail::multi_array::sub_array<T,
   NumDims>::operator[](boost::detail::multi_array::const_sub_array<T, NumDims,
   T*>::index) [with T = double, unsigned int NumDims = 2]':
src/test.cc:12: instantiated from here
/home/sapo/software/boost/include/boost-1_33_1/boost/multi_array/subarray.hpp:261: no
   matching function for call to `
   boost::detail::multi_array::const_sub_array<double, 2, double*>::access(
   boost::type<boost::detail::multi_array::sub_array<double, 1> >, index&,
   double*&, const size_type*, const index*, const index*)'
/home/sapo/software/boost/include/boost-1_33_1/boost/multi_array/subarray.hpp: In
   member function `boost::detail::multi_array::const_sub_array<T, NumDims,
   T*>::reference boost::detail::multi_array::sub_array<T,
   NumDims>::operator[](boost::detail::multi_array::const_sub_array<T, NumDims,
   T*>::index) [with T = double, unsigned int NumDims = 1]':
src/test.cc:12: instantiated from here
/home/sapo/software/boost/include/boost-1_33_1/boost/multi_array/subarray.hpp:261: no
   matching function for call to `
   boost::detail::multi_array::const_sub_array<double, 1, double*>::access(
   boost::type<double&>, index&, double*&, const size_type*, const index*,
   const index*)'

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1681011&group_id=7586


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk