I tried to declare a memory pool in my class.
But the compiler shows some basic error like missing ')' before ';'
or syntax error : 'sizeof'
It works well if I used the pool as local variable but I really want to make it live with the class.
What's wrong about my usage?
Here is the class, the MAX_OBJ is a const
class CData
{
public:
CData(void);
~CData(void);
private:
boost::pool m_Pool(sizeof(DWORD) * MAX_OBJ);
};