Closed olsoni closed 10 months ago
Hello,
making the 'virtual' attribute on the descructor optional would be great. Currently c++ autogenerated types cannot be used as is with the Boost PFR helper library:
Internally this library uses std::is_aggregate to check the struct has no virtual destructor.
https://www.boost.org/doc/libs/master/doc/html/boost_pfr.html https://github.com/boostorg/pfr
This is such a trivial thing to add. Will add now
pullreq up here lol: https://github.com/ZeroCM/zcm/pull/449
implemented in https://github.com/ZeroCM/zcm/pull/449
Because it's a nonzero memory cost and changes the underlying memory layout of the type itself, it would be nice to be able to forgo the inclusion of the virtual destructor in c++ zcmtypes. Ideally, this could be specified in the type itself as the use case for having vs not having a virtual destructor is somewhat of a type specific one.