diff options
author | Adam <Adam@anope.org> | 2010-07-27 21:31:13 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-07-27 21:31:13 -0400 |
commit | 4b870cc5f9671201dfad6fa836847cdd40aef519 (patch) | |
tree | 34aec3d880a22a8a828e5f5a7917e583cee92023 /include/extensible.h | |
parent | 66c0e280ee9d4940fe5a477d3e933ba4221e35db (diff) |
Added debug_cast which uses dynamic_cast on debug builds, and static_cast on release builds
Diffstat (limited to 'include/extensible.h')
-rw-r--r-- | include/extensible.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/extensible.h b/include/extensible.h index 523a25b6d..5ab32c6eb 100644 --- a/include/extensible.h +++ b/include/extensible.h @@ -153,7 +153,7 @@ class CoreExport Extensible if (it != this->Extension_Items.end()) { - p = dynamic_cast<ExtensibleItemRegular<T> *>(it->second)->GetItem(); + p = debug_cast<ExtensibleItemRegular<T> *>(it->second)->GetItem(); return true; } @@ -172,7 +172,7 @@ class CoreExport Extensible if (it != this->Extension_Items.end()) { - p = dynamic_cast<ExtensibleItemPointer<T> *>(it->second)->GetItem(); + p = debug_cast<ExtensibleItemPointer<T> *>(it->second)->GetItem(); return true; } @@ -192,7 +192,7 @@ class CoreExport Extensible if (it != this->Extension_Items.end()) { - p = dynamic_cast<ExtensibleItemPointerArray<T> *>(it->second)->GetItem(); + p = debug_cast<ExtensibleItemPointerArray<T> *>(it->second)->GetItem(); return true; } |