ブーストマルチアレイイテレータにarrow演算子がありませんか?これがうまくいくと私は間違っていますか?arrow演算子とブーストマルチアレイイテレータ
#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;
}
どのような種類のコンパイルエラーが発生しますか? –
'' - >':参照へのポインタが不正です.' \ boost \ multi_array \ iterator.hpp – cambunctious