P
Protoman
Why won't the compiler let me write this:
template <class T>
class Allocator
{
public:
Allocator(){}
T* allocate(){static long long i=0; T* j=new(pool) T; i++; return
&*j;}
private:
static T pool[1000000];
}
It keeps saying: "expected ; at end of input". Can you help me fix
this? Thanks.
template <class T>
class Allocator
{
public:
Allocator(){}
T* allocate(){static long long i=0; T* j=new(pool) T; i++; return
&*j;}
private:
static T pool[1000000];
}
It keeps saying: "expected ; at end of input". Can you help me fix
this? Thanks.