From 1666b1a8d8d629fd4ea89b083863dc217154eee9 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 8 Jul 2015 10:55:44 +0100 Subject: Fix a ton of typos. --- docs/C++CASTING | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/C++CASTING') diff --git a/docs/C++CASTING b/docs/C++CASTING index bae24a24c..e1beb8f06 100644 --- a/docs/C++CASTING +++ b/docs/C++CASTING @@ -21,7 +21,7 @@ The syntax is usually *_cast(var). static_cast ----------- -From my expierence, this cast is closest to C-style casting for non-pointer +From my experience, this cast is closest to C-style casting for non-pointer types as well as between some (but not all) pointer types. This type of cast, like C-style casting, is performed at compile-time. static_cast can also do a downcast of a derived class to a base class, but only if the base class is @@ -80,7 +80,7 @@ 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 +and static_cast on release builds, to speed up the program because of dynamic_cast's reliance on RTTI. reinterpret_cast -- cgit