Ticket #8009: boost-program-options-hyphen-bug.patch
File boost-program-options-hyphen-bug.patch, 522 bytes (added by , 10 years ago) |
---|
-
boost/program_options/errors.hpp
25 25 26 26 inline std::string strip_prefixes(const std::string& text) 27 27 { 28 return text.substr(text.find_last_of("-/") + 1); 28 // "--foo-bar" -> "foo-bar" 29 return text.substr(text.find_first_not_of("-/")); 29 30 } 30 31 31 32 /** Base class for all errors in the library. */