malachi-iot / embr

Apache License 2.0
1 stars 0 forks source link

objlist: typed objlist_element #4

Open malachib opened 3 weeks ago

malachib commented 3 weeks ago

While regular objlist_element does its job well, would like to have a derived objlist_typed_element<T> who effectively was a wrapper.

Specifically would be useful during emplace operations so that additional casting isn't necessary.

Tricky because flexible array element at the end interrupts derived classes

Extra useful because for people who want a functor type from a funclist-handled lambda, they can get it