Je commence à essayer de le coder comme tu m'as expliqué par contre j'ai des erreurs assez gênantes :
||=== Build: Debug in Jeu (compiler: GNU GCC Compiler) ===|
...\\CPlayerAnimation.h ||In member function 'bool AnimationBinder::operator<(AnimationBinder*)':|
...\\CPlayerAnimation.h |26|error: invalid operands of types 'void' and 'void' to binary 'operator<'|
...\\CPlayerAnimation.h ||In constructor 'AnimationManager::AnimationManager()':|
...\\CPlayerAnimation.h |38|error: expected type-specifier before '...' token|
...\\CPlayerAnimation.h |38|error: expansion pattern '(int*)operator new(4u)' contains no argument packs|
...\\CPlayerAnimation.h ||In member function 'void AnimationManager::activate(int, bool)':|
...\\CPlayerAnimation.h |45|error: request for member 'activated' in 'current', which is of pointer type 'AnimationBinder*' (maybe you meant to use '->' ?)|
...\\CPlayerAnimation.h |47|error: request for member 'binded' in 'current', which is of pointer type 'AnimationBinder*' (maybe you meant to use '->' ?)|
...\\CPlayerAnimation.h |48|error: request for member 'unbind' in 'current', which is of pointer type 'AnimationBinder*' (maybe you meant to use '->' ?)|
...\\CPlayerAnimation.h |51|error: no matching function for call to 'begin(irr::core::array<AnimationBinder*>&)'|
...\\CPlayerAnimation.h |51|note: candidates are:|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\initializer_list|89|note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\initializer_list|89|note: template argument deduction/substitution failed:|
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|51|note: 'irr::core::array<AnimationBinder*>' is not derived from 'std::initializer_list<_Tp>'|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|87|note: template<class _Tp, unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|87|note: template argument deduction/substitution failed:|
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|51|note: mismatched types '_Tp [_Nm]' and 'irr::core::array<AnimationBinder*>'|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|58|note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|58|note: template argument deduction/substitution failed:|
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|51|required from here|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|58|error: 'const class irr::core::array<AnimationBinder*>' has no member named 'begin'|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|48|note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|48|note: template argument deduction/substitution failed:|
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|51|required from here|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|48|error: 'class irr::core::array<AnimationBinder*>' has no member named 'begin'|
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|51|error: no matching function for call to 'end(irr::core::array<AnimationBinder*>&)'|
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|51|note: candidates are:|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\initializer_list|99|note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\initializer_list|99|note: template argument deduction/substitution failed:|
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|51|note: 'irr::core::array<AnimationBinder*>' is not derived from 'std::initializer_list<_Tp>'|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|97|note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|97|note: template argument deduction/substitution failed:|
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|51|note: mismatched types '_Tp [_Nm]' and 'irr::core::array<AnimationBinder*>'|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|78|note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|78|note: template argument deduction/substitution failed:|
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|51|required from here|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|78|error: 'const class irr::core::array<AnimationBinder*>' has no member named 'end'|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|68|note: template<class _Container> decltype (__cont.end()) std::end(_Container&)|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|68|note: template argument deduction/substitution failed:|
...\\CPlayerAnimation.h |51|required from here|
c:\\program files (x86)\\codeblocks\\mingw\\bin\\..\\lib\\gcc\\mingw32\\4.7.1\\include\\c++\\bits\
ange_access.h|68|error: 'class irr::core::array<AnimationBinder*>' has no member named 'end'|
...\\CPlayerAnimation.h |51|error: unable to deduce 'auto' from '<expression error>'|
...\\CPlayerAnimation.h |55|error: request for member 'activated' in 'current', which is of pointer type 'AnimationBinder*' (maybe you meant to use '->' ?)|
...\\CPlayerAnimation.h |55|error: request for member 'binded' in 'current', which is of pointer type 'AnimationBinder*' (maybe you meant to use '->' ?)|
...\\CPlayerAnimation.h |56|error: request for member 'bind' in 'current', which is of pointer type 'AnimationBinder*' (maybe you meant to use '->' ?)|
...\\CPlayerAnimation.h |80|error: conflicting return type specified for 'virtual int RunningState::priority()'|
...\\CPlayerAnimation.h |22|error: overriding 'virtual void AnimationBinder::priority()'|
||=== Build failed: 18 error(s), 5 warning(s) (0 minute(s), 3 second(s)) ===|
Tu crois que je n'utilise pas le bon compilateur car il y a des erreurs que j'ai jamais vu ?! (la plupart)