function template typechecking

Hi, suppose I have a function template. This function is intended for use on any integral (signed or unsigned) or floating point value, being passed by value or reference.

Is there a way to check at compile time that the function template is not instantiated with a parameter that is not a float/int, or it isnt passed by value/reference?

edit: sorry for asking prematurely- found a solution.
Last edited on
Could you perhaps share your solution, so others may learn?
Topic archived. No new replies allowed.