| 18 | |
| 19 | template<class T> |
| 20 | inline decltype(auto) Normalize(const T& arg) |
| 21 | { |
| 22 | // Handle bools first, we like their string representation. |
| 23 | if constexpr(std::is_same_v<std::remove_cvref_t<T>, bool>) { |
| 24 | return details::ConvertToBoolString(arg); |
| 25 | |
| 26 | } else if constexpr(std::is_integral_v<T>) { |
| 27 | return std::to_string(arg); |
| 28 | |
| 29 | } else { |
| 30 | return (arg); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | # endif /* STRCAT_H */ |
| 35 |
no test coverage detected