Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zetafunction
· 4y ago · 0 comments
Since C++17, using [[nodiscard]] can help with that.
Comments
[–]
jandrewrogers
4y ago
Indeed, Google's implementation of Status/StatusOr requires explicit handling of those objects, they cannot be discarded automatically.