summaryrefslogtreecommitdiff
path: root/docs/C++CASTING
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-28 00:28:59 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-28 00:28:59 -0400
commitaa9610a56ff18edd0703a3f391c90e1f8a761476 (patch)
tree5fceef5b811ffcb28bcea093b59604b94a2a89c1 /docs/C++CASTING
parent4700c9626861b193798b3cf3d53fb89a913c5819 (diff)
parenta2573a2c3067343ebf46292691671ba4bad855a8 (diff)
Merge branch '1.9' of ssh://anope.git.sf.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'docs/C++CASTING')
-rw-r--r--docs/C++CASTING5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/C++CASTING b/docs/C++CASTING
index 5a121a5d1..bae24a24c 100644
--- a/docs/C++CASTING
+++ b/docs/C++CASTING
@@ -78,6 +78,11 @@ This is safer than C-style casting in that an invalid pointer conversion will
return a NULL pointer, and an invalid reference conversion will throw a
Bad_cast exception.
+Note that in Anope we prefer if Anope::debug_cast is used.
+This uses dynamic_cast (and checks for a NULL pointer return) on debug builds
+and static_cast on release builds, to speed up the program beacuse of dynamic_cast's
+reliance on RTTI.
+
reinterpret_cast
----------------