Type traits that was the answer I was looking for, Also, the is_fundamental. Thank you, everyone, for you help.
byteherder.
Type: Posts; User: byteherder
Type traits that was the answer I was looking for, Also, the is_fundamental. Thank you, everyone, for you help.
byteherder.
The primative could be any of primative types. I wanted to get away from specifying template specialisation for every single primative type.
Looking a little deeper into partial template...
I'll edit the top post. I want the template to be the same for all of the top code block. Thanks for pointing out my mistake.
Hello fellow coders,
I am trying to create a template that behaves differently
if it is give a primative type vs a class. I should be easy
enough but my brain seems to be stuck in neutral.
...