I'm trying to create a class that will parse a file in C++.
However the file is actually in 2 files, the header and the raw data.

The header contains the data type of the raw data (it can be int, double, float, etc...).
I want to create a variable in my class that will store the raw data.
The processing will be the same, no matter the data type.

Should I use a template to do this ? Isn't it overkill to use a templated class for just 1 variable ?

Thank you.