return static_cast<T*>(malloc(sizeof(T)*Num));
}
return static_cast<T*>(malloc(sizeof(T)*Num));
}
- void Deallocate(void *Ptr) { free(Ptr); }
+ void Deallocate(const void *Ptr) { free(const_cast<void*>(Ptr)); }
void PrintStats() const {}
};
void PrintStats() const {}
};
unsigned EltSize = (sizeof(T)+Alignment-1)&~Alignment;
return static_cast<T*>(Allocate(Num * EltSize, Alignment));
}
unsigned EltSize = (sizeof(T)+Alignment-1)&~Alignment;
return static_cast<T*>(Allocate(Num * EltSize, Alignment));
}
-
-
- void Deallocate(void * /*Ptr*/) {}
+
+ void Deallocate(const void * /*Ptr*/) {}
void PrintStats() const;
};
void PrintStats() const;
};