Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tktkku opened this issue Apr 18, 2024 · 0 comments
Open
Assignees

Comments

@tktkku
Copy link

tktkku commented Apr 18, 2024

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?

@LessComplexity LessComplexity self-assigned this Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants