From f2f2d8b98d7a7ae89f4c646be6dea7730b6409e0 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 21 Feb 2012 21:46:43 +0000 Subject: Modernize conversion to bool to the explicit bool conversion operator (library wide). This fixes http://llvm.org/bugs/show_bug.cgi?id=12058. llvm-svn: 151088 --- libcxx/include/exception | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcxx/include/exception') diff --git a/libcxx/include/exception b/libcxx/include/exception index dcef3e55979..f7c3b70b00e 100644 --- a/libcxx/include/exception +++ b/libcxx/include/exception @@ -132,7 +132,7 @@ public: ~exception_ptr() _NOEXCEPT; _LIBCPP_INLINE_VISIBILITY - // explicit + _LIBCPP_EXPLICIT operator bool() const _NOEXCEPT {return __ptr_ != nullptr;} friend _LIBCPP_INLINE_VISIBILITY -- cgit v1.2.3