aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.h
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r--cores/arduino/WString.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h
index 7402430..b047980 100644
--- a/cores/arduino/WString.h
+++ b/cores/arduino/WString.h
@@ -59,7 +59,7 @@ public:
String(const char *cstr = "");
String(const String &str);
String(const __FlashStringHelper *str);
- #ifdef __GXX_EXPERIMENTAL_CXX0X__
+ #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
String(String &&rval);
String(StringSumHelper &&rval);
#endif
@@ -86,7 +86,7 @@ public:
String & operator = (const String &rhs);
String & operator = (const char *cstr);
String & operator = (const __FlashStringHelper *str);
- #ifdef __GXX_EXPERIMENTAL_CXX0X__
+ #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
String & operator = (String &&rval);
String & operator = (StringSumHelper &&rval);
#endif
@@ -200,7 +200,7 @@ protected:
// copy and move
String & copy(const char *cstr, unsigned int length);
String & copy(const __FlashStringHelper *pstr, unsigned int length);
- #ifdef __GXX_EXPERIMENTAL_CXX0X__
+ #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
void move(String &rhs);
#endif
};