1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 06:16:38 +02:00

Fix issue with using static_cast instead of reinterpret_cast for Extensible, allows for more than just char pointers to be used for Extensible.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2311 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2009-06-03 22:14:19 +00:00
parent 426f72117b
commit 6bed75b41f
+1 -1
View File
@@ -328,7 +328,7 @@ class CoreExport Extensible
* the return value is a std::pair of an iterator to the
* element, and a bool saying if it was actually inserted.
*/
return this->Extension_Items.insert(std::make_pair(key, static_cast<char *>(p))).second;
return this->Extension_Items.insert(std::make_pair(key, reinterpret_cast<char *>(p))).second;
}
/** Extend an Extensible class.