Skip to content

Commit

Permalink
Main: workaround any_cast on iOS by using strcmp
Browse files Browse the repository at this point in the history
as we got reports that it is broken on this platform
  • Loading branch information
paroj committed Dec 23, 2023
1 parent fd921a4 commit 25af19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OgreMain/include/OgreAny.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ namespace Ogre
ValueType * any_cast(Any * operand)
{
return operand &&
#if OGRE_COMPILER == OGRE_COMPILER_GNUC && OGRE_COMP_VER < 450
#if (OGRE_COMPILER == OGRE_COMPILER_GNUC && OGRE_COMP_VER < 450) || OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS
(std::strcmp(operand->type().name(), typeid(ValueType).name()) == 0)
#else
(operand->type() == typeid(ValueType))
Expand Down

0 comments on commit 25af19e

Please sign in to comment.