[libcxx-commits] [libcxx] [libc++][ios] Applied `[[nodiscard]]` (PR #173520)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Dec 25 05:15:34 PST 2025
================
@@ -28,17 +28,17 @@ class fpos {
public:
_LIBCPP_HIDE_FROM_ABI fpos(streamoff __off = streamoff()) : __st_(), __off_(__off) {}
- _LIBCPP_HIDE_FROM_ABI operator streamoff() const { return __off_; }
+ [[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI operator streamoff() const { return __off_; }
----------------
philnik777 wrote:
This is incorrect as well.
https://github.com/llvm/llvm-project/pull/173520
More information about the libcxx-commits
mailing list