add explicit bool operator to negate to silence msvc warnings - closes #1307
This commit is contained in:
parent
d828377c7c
commit
02644aeed1
1 changed files with 5 additions and 0 deletions
|
@ -577,6 +577,11 @@ struct negate : public boost::static_visitor<V>
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
value_type operator() (bool val) const
|
||||||
|
{
|
||||||
|
return val ? -1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
value_type operator() (UnicodeString const& ustr) const
|
value_type operator() (UnicodeString const& ustr) const
|
||||||
{
|
{
|
||||||
UnicodeString inplace(ustr);
|
UnicodeString inplace(ustr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue