diff options
author | Peter Powell <petpow@saberuk.com> | 2015-07-08 10:55:44 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2015-07-08 11:06:02 +0100 |
commit | 1666b1a8d8d629fd4ea89b083863dc217154eee9 (patch) | |
tree | b1e38d447c34fee25229945c2dd160b56683d026 /docs/C++CASTING | |
parent | 4362f53cc38177039d6f6b86565e73800e7b5390 (diff) |
Fix a ton of typos.
Diffstat (limited to 'docs/C++CASTING')
-rw-r--r-- | docs/C++CASTING | 4 |
1 files changed, 2 insertions, 2 deletions
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<type>(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 |