[llvm] r221295 - ErrorOr: Be more explicit in the implicit conversion to bool docs
Justin Bogner
mail at justinbogner.com
Tue Nov 4 13:01:48 PST 2014
Author: bogner
Date: Tue Nov 4 15:01:48 2014
New Revision: 221295
URL: http://llvm.org/viewvc/llvm-project?rev=221295&view=rev
Log:
ErrorOr: Be more explicit in the implicit conversion to bool docs
Modified:
llvm/trunk/include/llvm/Support/ErrorOr.h
Modified: llvm/trunk/include/llvm/Support/ErrorOr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ErrorOr.h?rev=221295&r1=221294&r2=221295&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ErrorOr.h (original)
+++ llvm/trunk/include/llvm/Support/ErrorOr.h Tue Nov 4 15:01:48 2014
@@ -68,9 +68,9 @@ public:
/// \endcode
///
///
-/// An implicit conversion to bool provides a way to check if there was an
-/// error. The unary * and -> operators provide pointer like access to the
-/// value. Accessing the value when there is an error has undefined behavior.
+/// Implicit conversion to bool returns true if there is a usable value. The
+/// unary * and -> operators provide pointer like access to the value. Accessing
+/// the value when there is an error has undefined behavior.
///
/// When T is a reference type the behaivor is slightly different. The reference
/// is held in a std::reference_wrapper<std::remove_reference<T>::type>, and
More information about the llvm-commits
mailing list