❔ operator * cannot be applied to operands of type T and T
I'm getting this error:
I understand why, but I'm wondering if there's a way to add a constraint only to ints , floats and doubles. Sounds like it's a no. What else can be done?
operator * cannot be applied to operands of type T and TI understand why, but I'm wondering if there's a way to add a constraint only to ints , floats and doubles. Sounds like it's a no. What else can be done?