L
Lukasz Slusarczyk
I'm writting sth.h file like that:
class sth {
public:
...
private:
list<sthelse> somevariable
};
and implement it in file sth.cpp,
but I have to write #include <list> in sth.h
I wold rather have something like that:
in sth.h:
class sth {
public:
...
private:
sth_type somevariable;
};
and the line
#include <list>
only in sth.cpp file
What's the way I should write sth.h and sth.cpp to gain that?
Great thanks for any answer to this basic question
class sth {
public:
...
private:
list<sthelse> somevariable
};
and implement it in file sth.cpp,
but I have to write #include <list> in sth.h
I wold rather have something like that:
in sth.h:
class sth {
public:
...
private:
sth_type somevariable;
};
and the line
#include <list>
only in sth.cpp file
What's the way I should write sth.h and sth.cpp to gain that?
Great thanks for any answer to this basic question