mike-matera / ArduinoSTL

An STL and iostream implementation based on uClibc++ that supports my CS-11M class.
GNU General Public License v3.0
322 stars 79 forks source link

std::function not supported ?? #78

Open ghost opened 2 years ago

ghost commented 2 years ago

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;

};