Boost logo

Boost Users :

Subject: Re: [Boost-users] Is is possible to place multi_arrays in maps???
From: Ramon F Herrera (ramon_at_[hidden])
Date: 2011-03-01 10:21:09


The snippet below illustrates what I am trying to do. I get an assertion
error message.

TIA,

-RFH

--------------------
typedef boost::multi_array<string, 2> ExpressionArrayType;
map<string, ExpressionArrayType> truthTable;

ExpressionArrayType exprTable(boost::extents[50][50]); // initial size
irrelevant

for (some iterator that provides changing array dimensions here) {
    exprTable.resize(boost::extents[new_nof_rows][new_nof_cols]);
    truthTable[subscript] = exprTable; <-- Assertion fails
}


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