Commit ba8bcb65 authored by Joseph Noir's avatar Joseph Noir

Add simple to_string for RIOT cross compiling

parent 9f495bc1
...@@ -189,4 +189,18 @@ ...@@ -189,4 +189,18 @@
printf("%s:%u: critical error: '%s'\n", __FILE__, __LINE__, error); \ printf("%s:%u: critical error: '%s'\n", __FILE__, __LINE__, error); \
abort() abort()
// arm cross compilers don't offer to_string
#ifdef __RIOTBUILD_FLAG
#include <string>
#include <sstream>
namespace std {
template <class T>
std::string to_string(T value) {
std::stringstream ss;
ss << value;
return ss.str();
}
} // namespace caf
#endif
#endif // CAF_CONFIG_HPP #endif // CAF_CONFIG_HPP
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment