mirror of https://github.com/ARMmbed/mbed-os.git
Before, the following results in a compilation error:
const struct Object *obj;
void obj_doit(const Object *obj);
Callback<void()> cb(obj, obj_doit);
This is especially noticable when migrating from the old Thread
constructor, which previously _required_ const.
Short term fix for all cv qualifiers through a C cast:
void *_obj = (void*)obj;
|
||
|---|---|---|
| .. | ||
| api | ||
| common | ||
| hal | ||
| targets | ||
| .yotta_ignore | ||
| CMakeLists.txt | ||
| module.json | ||
| targets.json | ||