mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-09-09 21:04:50 -04:00
Return this
from WhitespaceOptions::operator|=
This commit is contained in:
parent
ab44e97d90
commit
ed22c39066
@ -131,9 +131,10 @@ inline WhitespaceOptions operator|(
|
|||||||
WhitespaceOptions left, WhitespaceOptions right) {
|
WhitespaceOptions left, WhitespaceOptions right) {
|
||||||
return static_cast<WhitespaceOptions>(static_cast<int>(left) | static_cast<int>(right));
|
return static_cast<WhitespaceOptions>(static_cast<int>(left) | static_cast<int>(right));
|
||||||
}
|
}
|
||||||
inline void operator|=(
|
inline WhitespaceOptions& operator|=(
|
||||||
WhitespaceOptions& left, WhitespaceOptions right) {
|
WhitespaceOptions& left, WhitespaceOptions right) {
|
||||||
left = left | right;
|
left = left | right;
|
||||||
|
return left;
|
||||||
}
|
}
|
||||||
inline WhitespaceOptions operator&(
|
inline WhitespaceOptions operator&(
|
||||||
WhitespaceOptions left, WhitespaceOptions right) {
|
WhitespaceOptions left, WhitespaceOptions right) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user