Unresolved Overloaded Function Type

Here's my class:
1
2
3
4
5
6
7
8
9
10
11
class Animation
{
    std::list<AnimationFrame> frame;
    AnimationFrame currentFrame;
    void CheckFrames();

    public:
    void LoadFromFile( std::string filename );
    void SetPos( float x, float y );
    sf::Sprite Output();
};


Here's my function:
1
2
3
4
5
sf::Sprite Animation::Output()
{
    CheckFrames();
    return currentFrame.spr;
}


Here's where I call it:
1
2
//draw animation
sf::Sprite newfly = logfly.Output;


Here's my error: (refers to the line in which I call it ^)
1
2
3
C:\Users\Nick\Desktop\Projects\Flow\main.cpp||In function 'int main(int, char**)':|
C:\Users\Nick\Desktop\Projects\Flow\main.cpp|69|error: conversion from '<unresolved overloaded function type>' to non-scalar type 'sf::Sprite' requested|
||=== Build finished: 1 errors, 0 warnings ===|


Does anyone have an idea of where I went wrong?
You shall write

sf::Sprite newfly = logfly.Output();
Topic archived. No new replies allowed.