mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 15:41:44 +02:00
Tweak command_line::add_arg for clang 21
(cherry picked from commit 482daa7445f89acbe74f7a37023e4b89d17a97f0)
This commit is contained in:
committed by
jwinterm
parent
ed0267eea0
commit
f1b948dcc5
@@ -207,8 +207,7 @@ namespace command_line
|
||||
description.add_options()(arg.name, make_semantic(arg, def), arg.description);
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void add_arg(boost::program_options::options_description& description, const arg_descriptor<bool, false>& arg, bool unique)
|
||||
inline void add_arg(boost::program_options::options_description& description, const arg_descriptor<bool, false>& arg, bool unique = true)
|
||||
{
|
||||
if (0 != description.find_nothrow(arg.name, false))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user