maniacbug / StandardCplusplus

Standard C++ for Arduino (port of uClibc++)
588 stars 182 forks source link

Problem with vector library #24

Closed benoittachet closed 1 year ago

benoittachet commented 7 years ago

Hello,

I'm currently trying to use your library to make a school project, and I prefer to use vectors instead of double-sized array. It worked well on my last project (made last week), but now, when I try to add the vector library, I get the following errors :

C:\Users\benoit\Documents\Arduino\libraries\StandardCplusplus/vector:43:94: error: macro "swap" passed 4 arguments, but takes just 2

template <class T, class Allocator> void swap(vector<T,Allocator>& x, vector<T,Allocator>& y);

                                                                                          ^

C:\Users\benoit\Documents\Arduino\libraries\StandardCplusplus/vector:520:106: error: macro "swap" passed 4 arguments, but takes just 2

template <class T, class Allocator> _UCXXEXPORT void swap(vector<T,Allocator>& x, vector<T,Allocator>& y){

Il works well with the example file and my previous project, so I don't know what to do...

I just include the standardCplusplus.h and vector headers at beginning of my .ino file.

mike-matera commented 7 years ago

This project is dead. I have a library that's available in the Arduino Library Manager called ArduinoSTL.

benoittachet commented 7 years ago

OK, I'll check that, thanks and sorry for disturbing you

maniacbug commented 1 year ago

Also, feel free to post the entire failing .INO sketch here.