diff --git a/include/toolkit.h b/include/toolkit.h index 04413ce..c34d417 100644 --- a/include/toolkit.h +++ b/include/toolkit.h @@ -11,6 +11,7 @@ #include #include #include +#include namespace ranges = std::ranges; namespace views = std::ranges::views; @@ -99,7 +100,9 @@ namespace toolkit return std::vector(v.begin(), v.end()); } - double round(double value, int c){ + template + requires std::is_same_v || std::is_same_v + double round(T value, int c){ auto temp = 1; for(int i=0;i