particle-iot-archived / particle-dev

Particle Dev package for Atom
https://www.particle.io/dev
Apache License 2.0
183 stars 30 forks source link

std::vector erase not working due to bug in compiler #208

Closed mvictoras closed 7 years ago

mvictoras commented 7 years ago

vector<int> aVector; aVector.push_back(10); aVector.erase(aVector.begin());

Known issue related with the gcc version you are using: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57158 https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2011

mvictoras commented 7 years ago

My bad, it was a bug in my code.