From 728cc12c3ed67917493dfa1ce732b28347a3413d Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Thu, 8 May 2014 23:18:10 +0200 Subject: [PATCH] Clean up. --- spine-cocos2dx/src/spine/SkeletonAnimation.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);