Visual Studio Code – Template structure function specialisation depending on template type in C++-11
I have a templatized TRational class to handle fractional numbers for intergral types like signed/unsigned char/short/int/long long int etc. This works fine, but some struct functions require different code depending on the template type, like for signed or unsigned. Example:…