We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52e3064 commit 1712450Copy full SHA for 1712450
docopt.cpp
@@ -531,7 +531,7 @@ std::vector<Option> parse_defaults(std::string const& doc) {
531
532
std::vector<Option> defaults;
533
for (auto s : parse_section("options:", doc)) {
534
- s.erase(s.begin(), s.begin() + s.find(':') + 1); // get rid of "options:"
+ s.erase(s.begin(), s.begin() + static_cast<std::ptrdiff_t>(s.find(':')) + 1); // get rid of "options:"
535
536
for (const auto& opt : regex_split(s, re_delimiter)) {
537
if (starts_with(opt, "-")) {
0 commit comments