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.
This commit is contained in:
Benjamin Buch 2017-10-10 02:58:40 +02:00 committed by jarro2783
parent 0b7686949d
commit 37fab4ee7a

View File

@ -694,7 +694,7 @@ namespace cxxopts
};
template <typename T>
class standard_value : public Value
class standard_value final : public Value
{
public:
standard_value()