Closed mvanslobbe closed 5 months ago
Hey, thanks for the PR.
How are you using custom_tags
?
It has to be used as in this example https://github.com/odygrd/quill/blob/master/examples/example_custom_tags.cpp#L39
If you add the virtual destructor then it doesn't compile anymore.
e.g.
example_custom_tags.cpp:39:32: error: the type ‘const MyCustomTagsA’ of ‘constexpr’ variable ‘custom_tags_a’ is not literal
39 | static constexpr MyCustomTagsA custom_tags_a{"CUSTOM_TAG_A", 12};
It seems that instead of adding a virtual dtor, we need to ignore this warning for this class
moving this to https://github.com/odygrd/quill/pull/405
When compiling with '-Wnon-virtual-dtor' the current code will lead to
This fixes that.