Fixup integer pattern multiple definition
This commit is contained in:
parent
1e51db16b5
commit
005c929899
@ -428,11 +428,6 @@ namespace cxxopts
|
|||||||
|
|
||||||
namespace values
|
namespace values
|
||||||
{
|
{
|
||||||
namespace
|
|
||||||
{
|
|
||||||
std::basic_regex<char> integer_pattern
|
|
||||||
("(-)?(0x)?([1-9a-zA-Z][0-9a-zA-Z]*)|(0)");
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
@ -484,6 +479,8 @@ namespace cxxopts
|
|||||||
integer_parser(const std::string& text, T& value)
|
integer_parser(const std::string& text, T& value)
|
||||||
{
|
{
|
||||||
std::smatch match;
|
std::smatch match;
|
||||||
|
std::basic_regex<char> integer_pattern
|
||||||
|
("(-)?(0x)?([1-9a-zA-Z][0-9a-zA-Z]*)|(0)");
|
||||||
std::regex_match(text, match, integer_pattern);
|
std::regex_match(text, match, integer_pattern);
|
||||||
|
|
||||||
if (match.length() == 0)
|
if (match.length() == 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user