parent
69bb59d15f
commit
f00e305f40
@ -121,7 +121,9 @@ namespace boost { namespace program_options {
|
||||
std::string name(_name);
|
||||
string::size_type n = name.find(',');
|
||||
if (n != string::npos) {
|
||||
assert(n == name.size()-2);
|
||||
// this potentially fails on VC++ when compiled
|
||||
// with /MDd (?), See Ticket #773
|
||||
assert(n == name.size() - 2*sizeof(string::value_type));
|
||||
m_long_name = name.substr(0, n);
|
||||
m_short_name = '-' + name.substr(n+1,1);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user