Commit 884955139898cefbabd61cb48844d336a053f11f
1 parent
e976f964
Fix #353.
Move nodiscard before inline.
Showing
2 changed files
with
3 additions
and
1 deletions
include/cxxopts.hpp
| @@ -1248,8 +1248,8 @@ value(T& t) | @@ -1248,8 +1248,8 @@ value(T& t) | ||
| 1248 | 1248 | ||
| 1249 | class OptionAdder; | 1249 | class OptionAdder; |
| 1250 | 1250 | ||
| 1251 | -inline | ||
| 1252 | CXXOPTS_NODISCARD | 1251 | CXXOPTS_NODISCARD |
| 1252 | +inline | ||
| 1253 | const std::string& | 1253 | const std::string& |
| 1254 | first_or_empty(const OptionNames& long_names) | 1254 | first_or_empty(const OptionNames& long_names) |
| 1255 | { | 1255 | { |
src/CMakeLists.txt