bfgroup / Lyra

A simple to use, composable, command line parser for C++ 11 and beyond
https://bfgroup.github.io/Lyra/
Boost Software License 1.0
483 stars 58 forks source link

Warning about non-virtual destructor #81

Closed stertingen closed 1 month ago

stertingen commented 11 months ago

Building the code with -Wnon-virtual-dtor emits warnings in lyra/detail/deprecated_parser_customization.hpp.

I propose at least one of two things to fix this:

  1. Add a virtual default destructor to 'lyra::parser_customization', fixing the actual issue
  2. Change CMakeLists.txt to mark include directories as SYSTEM includes, avoiding warnings when using via add_subdirectory()

I can provide a PR if desired.

Edit: This would be fixed by merging https://github.com/bfgroup/Lyra/pull/80