QAQ ==!
Dependencies: mbed QEI-1 nRF24L01P xiugai
Diff: converters.h
- Revision:
- 11:ddfcd88f3a30
- Parent:
- 6:7db9b13ece76
--- a/converters.h Thu Nov 14 02:05:58 2019 +0000 +++ b/converters.h Thu Nov 14 03:16:22 2019 +0000 @@ -18,6 +18,12 @@ snprintf(buf, sizeof(buf), fmt, val);\ return string(buf);\ } +static inline string to_string(string s) { + return s; +} +static inline string to_string(const char* cs) { + return string(cs); +} static inline string to_string(bool v) { _c_to_string("%d", (int)v); }