I am trying to combine using a std::set and a class, like this:
#include <set>
class cmdline
{
public:
cmdline();
~cmdline();
private:
set<int> flags; // this is line 14
};
but, it doesn't like the set flags; part:
cmdline.hpp:14: error: ISO C++ forbids declaration of 'set' with no type
cmdline.hpp:14: error: expected ';' before '<' token
make: *** [cmdline.o] Error 1
As far as I can see, I gave a type (of int). Do you write the "set variable" line differently, or is it not allowed there?