M
Mike Durham
Hi all,
I have a problem with the Linux STL (I think!)
Can anyone explain why I get the error indicated below?
BTW if I use the <vector.h> (backward version) it compiles without
error. I just get a warning that I'm using the old STL.
Thanks, Mike
//#include <vector.h> // compiles ok
#include <vector> // compiles NOT ok
typedef bool (*FPTR_bool_pvoid)(void *);
typedef struct _THandler
{
_THandler() : InUse(false) {}
bool InUse;
int Block;
UINT CurTick;
UINT CountInit;
void *pThis;
FPTR_bool_pvoid pFunc;
} THandler;
// THE ERROR IS HERE
typedef vector<THandler*> THandlerList;
// ERROR: expected initializer before '<' token
I have a problem with the Linux STL (I think!)
Can anyone explain why I get the error indicated below?
BTW if I use the <vector.h> (backward version) it compiles without
error. I just get a warning that I'm using the old STL.
Thanks, Mike
//#include <vector.h> // compiles ok
#include <vector> // compiles NOT ok
typedef bool (*FPTR_bool_pvoid)(void *);
typedef struct _THandler
{
_THandler() : InUse(false) {}
bool InUse;
int Block;
UINT CurTick;
UINT CountInit;
void *pThis;
FPTR_bool_pvoid pFunc;
} THandler;
// THE ERROR IS HERE
typedef vector<THandler*> THandlerList;
// ERROR: expected initializer before '<' token