c++ - Is there a standalone implementation of std::function? -
i'm working on embedded system, code size issue. using standard library ups binary size 60k, 40k 100k. i'd utilize std::function, can't justify 60k. there standalone implementation can use, or similar? i'm using implicitly cast lambdas in fellow member functions bound variables in c++ 11.
the 60k came exception handling beingness added compiler, because exceptions required std::function. std::function throws 1 exception, "bad_function_call". removed code threw exception, seg faults if empty function called, , saved myself 60k.
c++ stl functional-programming embedded
No comments:
Post a Comment