mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 12:13:52 +00:00
Fix compilation on VS2017 (#1143)
The compiler complains about C2131: expression did not evaluate to a constant. https://godbolt.org/z/a198P3bdM --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
a8d6b84cfc
commit
bc621a95ca
@ -327,7 +327,11 @@ CLI11_INLINE std::size_t close_sequence(const std::string &str, std::size_t star
|
||||
return close_string_quote(str, start, closure_char);
|
||||
case 1:
|
||||
case 2:
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1920
|
||||
case(std::size_t)-1:
|
||||
#else
|
||||
case std::string::npos:
|
||||
#endif
|
||||
return close_literal_quote(str, start, closure_char);
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user