Fehlt der Pfeiloperator in Boost-Multiarray-Iteratoren? Habe ich falsch zu erwarten, dass das funktioniert?Pfeiloperator und Boost-Multiarray-Iterator
#include <vector>
#include <boost/multi_array.hpp>
struct foo {
int n;
};
int main()
{
{
std::vector<foo> a;
auto it = a.begin();
int test = it->n; // this does compile
}
{
boost::multi_array<foo, 1> a;
auto it = a.begin();
int test = it->n; // this does not compile
}
return 0;
}
Welche Art von Kompilierungsfehler tritt auf? –
''->': Zeiger auf Referenz ist unzulässig' in boost \ multi_array \ iterator.hpp – cambunctious