1.1 --- a/include/am-string.h Sat Aug 24 02:36:11 2013 -0700
1.2 +++ b/include/am-string.h Mon Aug 26 20:41:58 2013 -0700
1.3 @@ -33,6 +33,7 @@
1.4 #include <stdlib.h>
1.5 #include <string.h>
1.6 #include <am-utility.h>
1.7 +#include <am-moveable.h>
1.8
1.9 namespace ke {
1.10
1.11 @@ -54,6 +55,12 @@
1.12 if (other.length_)
1.13 set(other.chars_, other.length_);
1.14 }
1.15 + AString(Moveable<AString> other)
1.16 + : chars_(other->chars_.take()),
1.17 + length_(other->length_)
1.18 + {
1.19 + other->length_ = 0;
1.20 + }
1.21
1.22 AString &operator =(const char *str) {
1.23 if (str && str[0]) {