| 50 | // Hex-encodes a float value. |
| 51 | template <typename T> |
| 52 | std::string EncodeViaHexFloat(const T& value) { |
| 53 | std::stringstream ss; |
| 54 | ss << HexFloat<T>(value); |
| 55 | return ss.str(); |
| 56 | } |
| 57 | |
| 58 | // The following two tests can't be DRY because they take different parameter |
| 59 | // types. |