yes, that's pretty much the same what i had in mind. but this will work only if the data in <class T> is stored sequentially. For simple types (int, double,char) this is definitely true, but what about complex classes, or classes with complex-type members ?
Login