summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:54:22 +0000
committerfcolin2007-02-01 12:54:22 +0000
commitfe66807c8cefa06f12c6af5798d2ed3e14aa953c (patch)
treee684cb3c377b3e33ddeda42c0ee25d9c766ab11b
parent4ab2c9cd41abe5f904272cb2f5260fa6caed2138 (diff)
downloadivy-cplusplus-fe66807c8cefa06f12c6af5798d2ed3e14aa953c.zip
ivy-cplusplus-fe66807c8cefa06f12c6af5798d2ed3e14aa953c.tar.gz
ivy-cplusplus-fe66807c8cefa06f12c6af5798d2ed3e14aa953c.tar.bz2
ivy-cplusplus-fe66807c8cefa06f12c6af5798d2ed3e14aa953c.tar.xz
Utilisateur : Fcolin Date : 5/11/02 Heure : 9:57 Archivé dans $/Bus/Ivy Commentaire: (vss 6)
-rw-r--r--Ivy/DataTypes.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Ivy/DataTypes.h b/Ivy/DataTypes.h
index acc4aa0..2267de7 100644
--- a/Ivy/DataTypes.h
+++ b/Ivy/DataTypes.h
@@ -79,16 +79,18 @@ public:
str.append( right.ptr, right.size);
return str;
}
- operator +=(string s)
+ const string& operator +=(string s)
{
- append( s.ptr, s.size );
+ return append( s.ptr, s.size );
}
- operator +=(const char* s)
+ const string& operator +=(const char* s)
{
- append( s, strlen(s) );
+ return append( s, strlen(s) );
+ }
+ const string& operator +=(char c)
+ {
+ return append( &c, 1);
}
- 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