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

Consider a more C++ approach for handling memory allocations in MemoryUtils class #17

Open
pelesh opened this issue Oct 18, 2023 · 0 comments
Assignees

Comments

@pelesh
Copy link
Collaborator

pelesh commented Oct 18, 2023

@rothpc says: I tend to prefer a more C++ approach for handling memory allocations, so the MemoryUtils functions would use something like:

template<typename T> T* allocate(I n);

where it is assumed that type I is a parameter on MemoryUtils as suggested above. Error handling suggests exceptions with this approach.

Need to add basic exception handling to ReSolve in order to implement this.

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