[libcxx-commits] [libcxx] [libc++][print] Adds ostream overloads. (PR #73262)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 12 09:44:12 PST 2023
================
@@ -0,0 +1,42 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include <__availability>
+#include <__config>
+#ifndef _LIBCPP_HAS_NO_FILESYSTEM
+# include <fstream>
+#endif
+#include <ostream>
+
+#include "std_stream.h"
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+_LIBCPP_AVAILABILITY_PRINT _LIBCPP_EXPORTED_FROM_ABI FILE* __get_ostream_file(ostream& __os) {
+ // dynamic_cast requires RTTI, this only affects users whose vendor builds
+ // the dylib with RTTI disabled. It does not affect users why build with RTTI
+ // disabled with a dylib with RTTI enabled.
----------------
ldionne wrote:
```suggestion
// disabled but use a dylib where the RTTI is enabled.
```
https://github.com/llvm/llvm-project/pull/73262
More information about the libcxx-commits
mailing list