Hacker News new | ask | show | jobs
by zetafunction 1369 days ago
Since C++17, using [[nodiscard]] can help with that.
1 comments

Indeed, Google's implementation of Status/StatusOr requires explicit handling of those objects, they cannot be discarded automatically.