ArduinoSTL icon indicating copy to clipboard operation
ArduinoSTL copied to clipboard

std::function not supported ??

Open ghost opened this issue 3 years ago • 1 comments

hello i would like first to thank you for the great work. i would like to use the following code, but i guess the functional header doesnt have the function template: #include

class LambdaTest { public:

LambdaTest(std::function<void (int n)> lambda){ lambda_ptr = &lambda ; }

void callLambda(int value) { (*lambda_ptr)(value); }

protected: std::function<void (int n)> *lambda_ptr;

};

ghost avatar May 11 '22 17:05 ghost

See my fork that supports this.

Ebola-Chan-bot avatar Nov 05 '24 09:11 Ebola-Chan-bot