Thanks for your reply.
New boards provide a full C++ experience but sometimes there are corner cases.
I think it's a awesome attempt !
I show the source code trying to use queue library.
#include
#include <CurieTimerOne.h>
std::queue hoge;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
CurieTimerOne.start(1000000, &timerInt);
}
void loop() {
// put your main code here, to run repeatedly:
if (hoge.size() != 0)
{
Serial.println(hoge.front());
hoge.pop();
}
}
void timerInt()
{
hoge.push(0);
}
Compile error occured when using queue.push() (as hoge.push(0) in source code.).
It said "undefined reference to `std::__throw_bad_alloc()'".
pop() and front() seem to passed compiler.
Regards,
Daisuke.