You shouldn’t be using jmin with an explicit template type - just write jmin (a, b) and make sure the args have matching types.
Also avoid roundf, it’s a C function, not C++. use std::round() instead.
You shouldn’t be using jmin with an explicit template type - just write jmin (a, b) and make sure the args have matching types.
Also avoid roundf, it’s a C function, not C++. use std::round() instead.