Commit 884955139898cefbabd61cb48844d336a053f11f

Authored by Jarryd Beck
1 parent e976f964

Fix #353.

Move nodiscard before inline.
include/cxxopts.hpp
... ... @@ -1248,8 +1248,8 @@ value(T& t)
1248 1248  
1249 1249 class OptionAdder;
1250 1250  
1251   -inline
1252 1251 CXXOPTS_NODISCARD
  1252 +inline
1253 1253 const std::string&
1254 1254 first_or_empty(const OptionNames& long_names)
1255 1255 {
... ...
src/CMakeLists.txt
... ... @@ -20,3 +20,5 @@
20 20  
21 21 add_executable(example example.cpp)
22 22 target_link_libraries(example cxxopts)
  23 +
  24 +set_property(TARGET example PROPERTY CXX_STANDARD 17)
... ...