Changed String to be a typedef of std::string (issues #142 and #161)

This commit is contained in:
Benoit Blanchon
2015-11-25 21:09:18 +01:00
parent 8b66a25f66
commit 056682327b
5 changed files with 12 additions and 55 deletions

View File

@ -9,16 +9,7 @@
#ifndef ARDUINO
#include <string>
// This class reproduces Arduino's String class
class String : public std::string {
public:
String(const char *cstr = "") : std::string(cstr) {}
String(const String &str) : std::string(str) {}
explicit String(long);
explicit String(int);
explicit String(double, unsigned char decimalPlaces = 2);
};
typedef std::string String;
#else