winterscar / functional-avr Goto Github PK
View Code? Open in Web Editor NEWAn implemntation of std::function for the Arduino AVR chips
License: MIT License
An implemntation of std::function for the Arduino AVR chips
License: MIT License
This project is a very useful extension for small AVRs.
Please clarify the license of your project.
I would be interested in reusing it with the muwerk project, a scheduler with event-messaging, which uses the permissible MIT license.
I want to pass an object pointer and a pointer to member to a function which is saved in a lambda. This lambda is passed to your nonstd functional Class. If the object is big enough "object too large" assert is activated.
template<typename Message, typename Class>
void subscribe_member(Class* obj, void (Class::* method)(const Message&), bool status)
{
nonstd::function<bool(const uint8_t*, const uint8_t*)> test;
test = [this, obj, method, status](const uint8_t *incoming_msg, const uint8_t *incoming_size){
Message deserialized_msg;
(obj->*method)(deserialized_msg);
return true;
};
}
The naive solution was to disable the assert.
At first glance all work. What consequences does it have?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.