[PATCH] D13054: [libc++] Un-guarded reference to uncaught_exception() in ostream header
Asiri Rathnayake via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 22 05:26:05 PDT 2015
rmaprath updated this revision to Diff 35367.
rmaprath added a comment.
Updated patch with bit more context (-U20).
http://reviews.llvm.org/D13054
Files:
include/ostream
Index: include/ostream
===================================================================
--- include/ostream
+++ include/ostream
@@ -260,7 +260,10 @@
basic_ostream<_CharT, _Traits>::sentry::~sentry()
{
if (__os_.rdbuf() && __os_.good() && (__os_.flags() & ios_base::unitbuf)
- && !uncaught_exception())
+#ifndef _LIBCPP_NO_EXCEPTIONS
+ && !uncaught_exception()
+#endif // _LIBCPP_NO_EXCEPTIONS
+ )
{
#ifndef _LIBCPP_NO_EXCEPTIONS
try
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13054.35367.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150922/eda38047/attachment.bin>
More information about the cfe-commits
mailing list