Why would size matter?
I wouldn’t normally be looking to put a 1GB pixel volume on the stack, so there’s going to be a delete involved somewhere.
[edit] I know in general I could use a smart-pointer or some-such, but that may not be an option depending on what 3rd party code I’m interfacing with.
[quote=“valley”]I wouldn’t normally be looking to put a 1GB pixel volume on the stack, so there’s going to be a delete involved somewhere.
[edit] I know in general I could use a smart-pointer or some-such, but that may not be an option depending on what 3rd party code I’m interfacing with.[/quote]
Oh sure, you need to be a bit careful with stack objects, but I was talking about RAII in general: smart-pointers etc.
sigh now with composition. ;-D
- bram