Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-02-22 01:46:43 +0400
committerHoward Hinnant <hhinnant@apple.com>2012-02-22 01:46:43 +0400
commitf2f2d8b98d7a7ae89f4c646be6dea7730b6409e0 (patch)
tree1dc829eb7a2207b8f516cdbab3ab57ec5f3ba4df /libcxx/include/system_error
parentbd61856d91004d3534d7589da7d7062ebd74d3f5 (diff)
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
Diffstat (limited to 'libcxx/include/system_error')
-rw-r--r--libcxx/include/system_error4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/system_error b/libcxx/include/system_error
index 971be3374728..805c64648833 100644
--- a/libcxx/include/system_error
+++ b/libcxx/include/system_error
@@ -451,7 +451,7 @@ public:
string message() const;
_LIBCPP_ALWAYS_INLINE
- //explicit
+ _LIBCPP_EXPLICIT
operator bool() const _NOEXCEPT {return __val_ != 0;}
};
@@ -528,7 +528,7 @@ public:
string message() const;
_LIBCPP_ALWAYS_INLINE
- //explicit
+ _LIBCPP_EXPLICIT
operator bool() const _NOEXCEPT {return __val_ != 0;}
};