summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-05-28 22:02:20 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-05-28 22:02:20 +0000
commit69a90edcab5d6d3d52aa0c1a7a73c3278f01fe2f (patch)
tree8847b15909f4cbf99c9c3153ba9475a19efe97fc /docs
parentf3d39d685722a798b1b0ed7b8610b634a1892fa5 (diff)
downloadATCD-69a90edcab5d6d3d52aa0c1a7a73c3278f01fe2f.tar.gz
ChangeLogTag: Tue May 28 17:00:21 2002 Krishnakumar B <kitty@cs.wustl.edu>
Diffstat (limited to 'docs')
-rw-r--r--docs/ACE-guidelines.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ACE-guidelines.html b/docs/ACE-guidelines.html
index 70b50402bed..cbc173acd7e 100644
--- a/docs/ACE-guidelines.html
+++ b/docs/ACE-guidelines.html
@@ -451,6 +451,12 @@ The correct way to write that guard is:
set.insert (2 * i + 1);
</pre><p>
+ <li>Prefer using <strong> <code> if (...) else .... </code> </strong>
+ instead of <strong> <code> ?: </code> </strong> operator. It is a lot
+ less error prone, and will help you avoid bugs caused due to the
+ precedence of <strong> <code> ?: </code> </strong>, compared with other
+ operators in an expression.
+
<li>When a class provides operator==, it must also provide
operator!=. Also, both these operators must be const.