From afd9ab17ec154ead18cf2630a1098bde103358f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Krzemie=C5=84ski?= Date: Thu, 29 May 2014 17:41:56 +0200 Subject: [PATCH] removed comparison with 0 The concept is supposed to generalize pointers and optional<>, but the latter has abandoned the comparison with 0 a long while ago. --- OptionalPointee.html | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/OptionalPointee.html b/OptionalPointee.html index 462d6f3..c3c7e44 100644 --- a/OptionalPointee.html +++ b/OptionalPointee.html @@ -57,10 +57,7 @@ aliasing. Validity Test -  t
-  t != 0
-  !!t - +  bool(t)  bool If the pointee is valid returns true.
If the pointee is invalid returns false. @@ -68,9 +65,7 @@ aliasing. Invalidity Test -  t == 0
-  !t - +  !t  bool If the pointee is valid returns false.
If the pointee is invalid returns true. @@ -161,4 +156,4 @@ so direct usage of relational operators with the implied aliasing of shallow sem www.boost.org/LICENSE_1_0.txt

- \ No newline at end of file +