diff --git a/spine-cocos2dx/src/spine/SkeletonAnimation.h b/spine-cocos2dx/src/spine/SkeletonAnimation.h index 9ad1995ae..fe7c98eb1 100644 --- a/spine-cocos2dx/src/spine/SkeletonAnimation.h +++ b/spine-cocos2dx/src/spine/SkeletonAnimation.h @@ -62,7 +62,8 @@ public: void setMix (const char* fromAnimation, const char* toAnimation, float duration); template void setAnimationListener (_Rx _Farg0::* const type, _Arg0&& target) { - this->listener = std::bind(type, target, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5); + using namespace std::placeholders; + this->listener = std::bind(type, target, _1, _2, _3, _4, _5); } spTrackEntry* setAnimation (int trackIndex, const char* name, bool loop);