SFML community forums

Help => General => Topic started by: The Illusionist Mirage on October 01, 2013, 09:13:45 pm

Title: Doubt in Thor Library - Animator class
Post 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
Title: Re: Doubt in Thor Library - Animator class
Post by: Nexus on October 01, 2013, 09:44:39 pm
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.
Title: Re: Doubt in Thor Library - Animator class
Post by: The Illusionist Mirage on October 02, 2013, 05:21:34 am
Ok, thanks.