diff --git a/include/json/value.h b/include/json/value.h index cf8f2f4..94e7366 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -131,9 +131,10 @@ inline WhitespaceOptions operator|( WhitespaceOptions left, WhitespaceOptions right) { return static_cast(static_cast(left) | static_cast(right)); } -inline void operator|=( +inline WhitespaceOptions& operator|=( WhitespaceOptions& left, WhitespaceOptions right) { left = left | right; + return left; } inline WhitespaceOptions operator&( WhitespaceOptions left, WhitespaceOptions right) {