Skip to content
Snippets Groups Projects
Commit e258c73c authored by David Gobbi's avatar David Gobbi
Browse files

Use RAII instead of new/delete for wrapper temp array

For array and pointer args, the Python wrappers sometimes have to
dynamically allocate an array.  This patch adds a simple class that
uses stack storage for small arrays, heap storage for large arrays,
and releases resources upon destruction.
parent b342b394
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment