Is is possible to place multi_arrays in maps???
I need a set of multi_arrays, and so far it seems that I can only have one of them (with the same name) at a time. What I need is a loop where the original multi_array is resized, filled and the current copy saved in a map. Is that possible? TIA, -RFH
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 }
participants (2)
-
Ramon F Herrera
-
Ramon F. Herrera