SFML time problem

I am learning to create classes and while making a class to help me draw a nice tree, the "Time" functions of SFML gave me a wonky error.

here is my code: //(It isn't to long)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class Leaves : public sf::Drawable, public sf::Transformable
{
public:
    Leaves(unsigned int count) :
        t_leavecount(count),
        t_growtime((count ^ 5) / 3 ^ 8),
        t_vertices(Triangles, count),
        positions(count * 3)

    void create(){

    }
private:
    virtual void draw(RenderTarget& target, RenderStates states) const
    {
        states.transform *= getTransform();
        states.texture = NULL;
        target.draw(t_vertices, states);
    }
    struct Leaf
    {
        Time growtime;
    };
    void createleaf(std::size_t index){

    }
    VertexArray t_vertices;
    vector<Leaf> positions;
    Time t_growtime;
    int t_leavecount;

};

and... it returns this:
 
sf::Time::Time('Int64') is private

and it opens the "Time.hpp" file and points to line 102.
*Note I am using sfml 2.1

Thank you
You should write a zero-parameter constructor for Leaf
I don't understand, please elaborate.
sf::Time has two constructors that are not private and those are the default constructor and the copy constructor. You may not use another one. On the other hand, you might check out the convenience functions sf::seconds, sf::milliseconds and sf::microseconds which return an sf::Time object suitable for feeding to the copy constructor.
Topic archived. No new replies allowed.