I miss += for CachedValue

Would it be possible to add stuff like

inline CachedValue<Type>& operator+=(Type rhs)
{
    setValue(cachedValue + rhs, undoManager);
    return *this;
}

to CachedValue? I’m kinda bored of having to write

longVariableNames = longVariableNames + evenlonger

instead of

longVariableNames += evenlonger
1 Like