smallfunction
smallfunction copied to clipboard
Stack allocated and type-erased functors 🐜
Results
2
smallfunction issues
Sort by
recently updated
recently updated
newest added
changes
7
- fix gcc warning warning: _dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]_ with 2 lines splitup: ```cpp Concept *cpt = reinterpret_cast(memory); cpt->~Concept(); ``` - use `std::size_t` instead of `unsigned`...
although I am no expert on alignment I believe the char buffer should be some kind of aligned storage