| 45 | |
| 46 | template<class NumberType> |
| 47 | inline std::string numberToString(const NumberType& number) |
| 48 | { |
| 49 | std::ostringstream converter; |
| 50 | |
| 51 | if (typeid(NumberType) == typeid(bool)) |
| 52 | { |
| 53 | return number ? "true" : "false"; |
| 54 | } |
| 55 | |
| 56 | return (converter << number).fail() ? std::string{} : converter.str(); |
| 57 | } |
| 58 | |
| 59 | FlashValue::FlashValue() : |
| 60 | numValue(0), |