Não é possível acessar o iterador de vetores std _Ptr no Mac
No Visual Studio, esse trecho de código funciona l, como um encanto:
auto child = node.childs.begin();
while (child != node.childs.end()) {
vector<int> siblings;
for (auto it : node.childs){
if (it != *child._Ptr)siblings.push_back( it );
}
if (CheckSomething( tree, *child._Ptr, siblings ) > 0) {
//delete that child
child = node.childs.erase( child );
}
else ++child;
}
mas com o mesmo código no XCode, eu tenho erros como _Ptr é inexistente? não é a mesma biblioteca std com as mesmas estruturas? por que isso aconteceu?
File.cpp:1745:22: No member named '_Ptr' in 'std::__1::__wrap_iter<int *>'
desde já, obrigado