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 69bb59d commit f00e305Copy full SHA for f00e305
src/options_description.cpp
@@ -121,7 +121,9 @@ namespace boost { namespace program_options {
121
std::string name(_name);
122
string::size_type n = name.find(',');
123
if (n != string::npos) {
124
- assert(n == name.size()-2);
+ // this potentially fails on VC++ when compiled
125
+ // with /MDd (?), See Ticket #773
126
+ assert(n == name.size() - 2*sizeof(string::value_type));
127
m_long_name = name.substr(0, n);
128
m_short_name = '-' + name.substr(n+1,1);
129
} else {
0 commit comments