I have a trivial problem in C++ that I can't solve. I have an array of structs whose type is defined in main. When I pass the array to another function (which has the the struct declared in the ...
I'm trying to templatize a class, based on a list of values. The list can't be another class - template parameters need to be compile-time constants. So that leaves arrays as the option.<P>My current ...