I was going to update this question but I thought that this was different.
I have been trying to get std::vector to work with the latest Arduino. I have tried downloading several libraries found online but I can not get one of them to compile correctly. So here is my question, does anyone CURRENTLY know of a Arduino STL Library that is working?
StandardCplusplus: As stated above I tried to use this library but run into problems with the new/delete functions.
Andy Brown's AVR-STL Library doesn't even seem to come close to compiling.
If anyone has a working copy of these two I would love to have a copy or if you can tell me how to get them to compile. Otherwise I really need to find a way to get Vectors working, does anyone have any ideas?
Edit
I didn't want to answer this question so it is still active as I am sure there will be additions to this. Anyways I FINALLY got a library to work (for now, so far). I downloaded the StandardCplusplus library and found that in order to get any of the stl functions to work you have to add an include to the "StandardCplusplus.h" file before EVERY use, not just in the first file as stated in the Wiki on the Project page.
So I was able to get vectors to work using the following:
#include "StandardCplusplus.h"
#include <iterator>
#include <vector>
vector<int> test;
void setup(){
Serial.begin(57600);
test.push_back(1);
test.push_back(2);
test.push_back(3);
test.push_back(4);
}
void loop(){
for (int i = 0; i < test.size(); i++){
Serial.println(test[i]);
}
}
I would still like to know of other working STL Libraries as it seems that there are tons of outdated and old libraries out there.