I am using an API that uses integers where the calculations I am doing require floating point precision. The API provides a templat'd data structure and I am converting between the two template types to satisfy the API. Is this the reasonable thing to do for the conversion?
Code:template <typename T, typename U> void cut( core::coords<T> & t, core::coords<U> & u) { for all t.coords = (T) u.coords; }