summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy')
-rw-r--r--Ivy/DataTypes.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/Ivy/DataTypes.h b/Ivy/DataTypes.h
index 2267de7..daf9470 100644
--- a/Ivy/DataTypes.h
+++ b/Ivy/DataTypes.h
@@ -79,18 +79,21 @@ public:
str.append( right.ptr, right.size);
return str;
}
- const string& operator +=(string s)
- {
- return append( s.ptr, s.size );
- }
- const string& operator +=(const char* s)
+
+ void operator +=(string s)
{
- return append( s, strlen(s) );
+ append( s.ptr, s.size );
}
- const string& operator +=(char c)
+
+ void operator +=(const char* s)
{
- return append( &c, 1);
+ append( s, strlen(s) );
}
+
+ void operator +=(char c)
+ { append( &c, 1);}
+
+
string operator +(string s) const
{ string str ( ptr, size ); str.append( s.ptr, s.size ); return str; }
string operator +(const char c) const