The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
OTF values for a nearly-dynamic array....
MikeyPro
Joined: 14 Feb 2015
Posts: 15
Posted: Thu Mar 05, 2015 7:47 pm
Not SDL related, but programming related, does anybody find a major problem with this? Besides the obvious stack space use and possible invalid parameter types being cast to T type...
Code:
/*
Creates an array of template type T of total size count, with count
being no greater than MARR_BUFFER_SIZE-1, then fills the array
values with the parameters given in the function parameter list.
*/