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:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user