Quote:
or (auto& x : this->Map) { /*E2291:this range-based 'for' statement requires
a suitable 'begin' function and none was found
Should actually work because
Map
is a
std::vector
and the latter does provide a 'suitable'
begin
.
Anyway you could replace it with
for (size_t n=0; n< Map.size(); ++n)
{
auto & x = Map[n];