---------------------------------------------
@helios
---------------------------------------------
thanks a lot for the insight. Defintely helpful for me. I will see if one can get into a 1d table. While it is easy to intialize it here that ways, it is not be very intuittive in my domain. So for further processing, I will have to keep doing the math. But that is OK with me.
However in your example you store the data in two different variable names.
pointer.double_table vs pointer.float_table.
I need to save them in a single class variable name m2DArray as I have common set of further prcessing to be done on the variable irrespective of whether it is float or double. is there a way to get them into a single class variable like m2DArray. Thanks a lot.
----------------------------------------------
@salem c
----------------------------------------------
thanks for the suggesstion. i tried using template in my class. But my class inherits from a library class. And if I add the template <typename SampleType> on top of inherited MyClass, my IDE
starts complaining this for all my functions defined in the .cpp file
this declaration has no storage class or type specifier |
And I have no clue what that is supposed to mean.