| 43 | |
| 44 | /// @brief Convert number to decimal string |
| 45 | template <class T> std::string toString( T x ) |
| 46 | { |
| 47 | static_assert( std::is_integral<T>::value || std::is_enum<T>::value || |
| 48 | std::is_floating_point<T>::value, |
| 49 | "Numeric type required." ); |
| 50 | |
| 51 | std::ostringstream ss; |
| 52 | ss << x; |
| 53 | return ss.str(); |
| 54 | } |
| 55 | |
| 56 | /// @overload |
| 57 | inline std::string hexString( uint8_t x ) |
no test coverage detected