From 6bed75b41f24d98d293cd6dfb4a01e9cae34dd8f Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Wed, 3 Jun 2009 22:14:19 +0000 Subject: [PATCH] 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 --- include/services.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/services.h b/include/services.h index a2c9db2ab..25e9528c8 100644 --- a/include/services.h +++ b/include/services.h @@ -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(p))).second; + return this->Extension_Items.insert(std::make_pair(key, reinterpret_cast(p))).second; } /** Extend an Extensible class.