[libcxx-commits] [libcxx] [libc++][print] Adds ostream overloads. (PR #73262)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Dec 16 04:02:59 PST 2023


================
@@ -286,7 +286,9 @@ class _LIBCPP_HIDDEN __stdoutbuf
 
     __stdoutbuf(FILE* __fp, state_type* __st);
 
-protected:
+    [[nodiscard]] FILE* __file() { return __file_; }
----------------
mordante wrote:

For consistency, I think it makes sense to do it here too.

https://github.com/llvm/llvm-project/pull/73262


More information about the libcxx-commits mailing list