SFML community forums
Help => General => Topic started by: The Illusionist Mirage on October 01, 2013, 09:13:45 pm
-
Hello
The following statement produces an error:
thor::Animator animator;
Error:
D:\CodeBlocks\SFML 2.1\DP\svn\trunk\Entity.h|53|error: invalid use of template-name 'thor::Animator' without an argument list|
What's wrong?
I'm using Thor 2.0 with SFML 2.1.
Thanks
-
The error message can't be more clear than that. thor::Animator is a class template (not a class), thus it requires template arguments.
If you have not learned templates yet, I suggest you do that before using Thor; the library uses some advanced C++ techniques.
-
Ok, thanks.