Closed Girishchandra-Yendargaye closed 2 years ago
I had something similar while compiling. I was inadvertently using an old compiler (4.8.5) for both boost and tin-terrain. Everything behaved correctly under GCC 8.3.0.
error: parameter declared ‘auto’ std::for_each(begin, end, [this](const auto& v) { add(v); }); error: ‘v’ was not declared in this scope std::for_each(begin, end, [this](const auto& v) { add(v); }); error: ‘make_unique’ is not a member of ‘std’ TileMaker() : m_mesh(std::make_unique()) {} error: expected primary-expression before ‘>’ token TileMaker() : m_mesh(std::make_unique()) {} error: expected primary-expression before ‘)’ token TileMaker() : m_mesh(std::make_unique()) {}
Yes after changing compiler it worked.
error: parameter declared ‘auto’ std::for_each(begin, end, [this](const auto& v) { add(v); }); error: ‘v’ was not declared in this scope std::for_each(begin, end, [this](const auto& v) { add(v); }); error: ‘make_unique’ is not a member of ‘std’ TileMaker() : m_mesh(std::make_unique()) {}
error: expected primary-expression before ‘>’ token
TileMaker() : m_mesh(std::make_unique()) {}
error: expected primary-expression before ‘)’ token
TileMaker() : m_mesh(std::make_unique()) {}