diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index b047980..4667a0d 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -89,6 +89,8 @@ public: #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) String & operator = (String &&rval); String & operator = (StringSumHelper &&rval); + auto begin() -> const char* { return c_str(); } + auto end() -> const char* { return c_str() + length(); } #endif // concatenate (works w/ built-in types)