Commit 37fab4ee7a26e9c3af5a934fdeb2410ed13a7f54

Authored by Benjamin Buch
Committed by jarro2783
1 parent 0b768694

avoid warning about non-virtual destructor (#75)

´Value´ and ´standard_value´ don't have a virtual destructor. When I understand the code right, this is intended, because they are used through ´shared_ptr´ and so its not required. Nevertheless, clang does warn about it, since at the point of the destructor call it can not check if the object has a final type. Adding the C++11 keyword ´final´ to ´standard_value´ avoids this warning.
Showing 1 changed file with 1 additions and 1 deletions
include/cxxopts.hpp
... ... @@ -694,7 +694,7 @@ namespace cxxopts
694 694 };
695 695  
696 696 template <typename T>
697   - class standard_value : public Value
  697 + class standard_value final : public Value
698 698 {
699 699 public:
700 700 standard_value()
... ...