Matt Hurd
Matt Hurd
Here is an example file that supports initialisation such as: ``` struct workspace_t { TUN_DEFINE_STRUCT(workspace_t, (std::string, "workspace", name), (std::string, "", notes), (std::vector, , window_list), (int, 0, counter)); }; ``` Note,...
It is problematic but not a terrible compromise as far as it goes. The adapt macros are there for the trickier cases too. Not sure if I dislike adjoining commas...
I think @quicknir is correct that my approach with possible empty initialisers is a bit ugly. Having an optional third parameter for an initialiser that may cope with commas with...