diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2011-03-26 18:52:54 -0400 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2011-03-26 18:52:54 -0400 |
commit | 99e642a26dc2a406cdfa2d43665f45749b63d5c8 (patch) | |
tree | f18963c97cbb2693df9330f4de66e180e3e618fb /pins | |
parent | cedea72273a1d0b70c83f46808342b23ddaddca7 (diff) |
String: removing implicit numeric conversions and new approach to "if (s)".
This makes explicit the String constructors that take numeric types and chars and removes the versions of concat() and operator=() and operator+() that accept numberic types.
It also replaces the operator bool() with a operator that converts to a function pointer. This allows for uses like "if (s)" but not "s + 123". See: http://www.artima.com/cppsource/safebool.html. This allowed removing the disambiguating operator+() functions and relying solely on StringSumHelper and anonymous temporaries once again.
Also, now treating unsigned char's like int when constructing Strings from them, i.e. String(byte(65)) is now "65" not "A". This is consistent with the new behavior of Serial.print(byte).
Diffstat (limited to 'pins')
0 files changed, 0 insertions, 0 deletions