diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 6fd5be7..d0f9106 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1248,8 +1248,8 @@ value(T& t) class OptionAdder; -inline CXXOPTS_NODISCARD +inline const std::string& first_or_empty(const OptionNames& long_names) { diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 451d778..3b222e4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -20,3 +20,5 @@ add_executable(example example.cpp) target_link_libraries(example cxxopts) + +set_property(TARGET example PROPERTY CXX_STANDARD 17)