[multi_array] Accessing elements via an iterator

8 Feb
2012
8 Feb
'12
7:27 p.m.
Given this simple definition for multi_array: struct data { int value; }; typedef boost::multi_array array_type; array_type a; Can someone tell me why pointer dereferencing, i.e. operator->, an element does not successfully compile? Normal derefencing does work, i.e. operator*. Am I doing something wrong or is this a problem with multi_array? For example: // Successfully compiles (*a.begin()->begin()->begin()).value = 10; // Does NOT compile a.begin()->begin()->begin()->value = 10; I'm using MSVC 2010 and it returns an error that "pointer to reference is illegal". I'm using multi_array from the trunk section. -- Bill
4761
Age (days ago)
4761
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bill Buklis