Added const to argv type for better interoperability.
This commit is contained in:
parent
d7b930846c
commit
cd22b9ee55
@ -922,7 +922,7 @@ namespace cxxopts
|
|||||||
|
|
||||||
inline
|
inline
|
||||||
void
|
void
|
||||||
parse(int& argc, char**& argv);
|
parse(int& argc, const char**& argv);
|
||||||
|
|
||||||
inline
|
inline
|
||||||
OptionAdder
|
OptionAdder
|
||||||
@ -1018,7 +1018,7 @@ namespace cxxopts
|
|||||||
checked_parse_arg
|
checked_parse_arg
|
||||||
(
|
(
|
||||||
int argc,
|
int argc,
|
||||||
char* argv[],
|
const char* argv[],
|
||||||
int& current,
|
int& current,
|
||||||
std::shared_ptr<OptionDetails> value,
|
std::shared_ptr<OptionDetails> value,
|
||||||
const std::string& name
|
const std::string& name
|
||||||
@ -1291,7 +1291,7 @@ void
|
|||||||
Options::checked_parse_arg
|
Options::checked_parse_arg
|
||||||
(
|
(
|
||||||
int argc,
|
int argc,
|
||||||
char* argv[],
|
const char* argv[],
|
||||||
int& current,
|
int& current,
|
||||||
std::shared_ptr<OptionDetails> value,
|
std::shared_ptr<OptionDetails> value,
|
||||||
const std::string& name
|
const std::string& name
|
||||||
@ -1385,7 +1385,7 @@ Options::parse_positional(std::vector<std::string> options)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Options::parse(int& argc, char**& argv)
|
Options::parse(int& argc, const char**& argv)
|
||||||
{
|
{
|
||||||
int current = 1;
|
int current = 1;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user