Move nodiscard before inline.
This commit is contained in:
Jarryd Beck 2022-07-18 21:16:04 +10:00
parent e976f964c3
commit 8849551398
2 changed files with 3 additions and 1 deletions

View File

@ -1248,8 +1248,8 @@ value(T& t)
class OptionAdder; class OptionAdder;
inline
CXXOPTS_NODISCARD CXXOPTS_NODISCARD
inline
const std::string& const std::string&
first_or_empty(const OptionNames& long_names) first_or_empty(const OptionNames& long_names)
{ {

View File

@ -20,3 +20,5 @@
add_executable(example example.cpp) add_executable(example example.cpp)
target_link_libraries(example cxxopts) target_link_libraries(example cxxopts)
set_property(TARGET example PROPERTY CXX_STANDARD 17)