DevShiftTeam / AppShift-MemoryPool

A very fast cross-platform memory pool mechanism for C++ built using a data-oriented approach (3 to 24 times faster than regular new or delete, depending on operating system & compiler)
Apache License 2.0
214 stars 25 forks source link

VS2013 warning C4291: "void *operator new(size_t,AppShift::MemoryPool *)" #24

Open tktkku opened 5 months ago

tktkku commented 5 months ago

Hi, I am using VS2013 + WindowsApplicationForDrivers8.1 to build my project

// global var
AppShift::MemoryPool pool;
//....
Object obj = new(&pool) Object;
//...
pool.free(obj);

then I got a warning C4291: "void operator new(size_t,AppShift::MemoryPool )": No matching delete operator found; memory will not be released if initialization throws an exception. Does this matter or can i just ignore it?