Return this from WhitespaceOptions::operator|=

This commit is contained in:
NotWearingPants 2024-05-15 01:36:03 +03:00 committed by GitHub
parent ab44e97d90
commit ed22c39066
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,9 +131,10 @@ inline WhitespaceOptions operator|(
WhitespaceOptions left, WhitespaceOptions right) {
return static_cast<WhitespaceOptions>(static_cast<int>(left) | static_cast<int>(right));
}
inline void operator|=(
inline WhitespaceOptions& operator|=(
WhitespaceOptions& left, WhitespaceOptions right) {
left = left | right;
return left;
}
inline WhitespaceOptions operator&(
WhitespaceOptions left, WhitespaceOptions right) {