You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mean if it takes a const ref, then it shouldn't return a non-const ref to it...
(And a templated version with perfect forwarding wouldn't solve it: by-val store shouldn't return a copy for "method chaining" :) )
But... I think the problematic version should just be removed, unless there are strong use cases for it -- especially as it can't even return an error!...: