Skip to content

Usage of c-templates for different register-data types

Instead of 100x "getVal()" only 3 methods should be needed: T getVal(); void getValArray(T* p, dim1) void getValArray2D(T* p, dim1, dim2)

As well fromString and toString should be doable when using template-specialisation: http://de.cppreference.com/w/cpp/language/template_specialization

  • Need to keep the old methods as deprecated for some years
Edited by al.schwinn