summaryrefslogtreecommitdiff
path: root/Ivy/DataTypes.h
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:54:24 +0000
committerfcolin2007-02-01 12:54:24 +0000
commit52382fb13d0312f26ba0f13da9ad3fb12a218e02 (patch)
tree084ef6097424d9e3cc421c122e246dd81cf14a3c /Ivy/DataTypes.h
parentfe66807c8cefa06f12c6af5798d2ed3e14aa953c (diff)
downloadivy-cplusplus-52382fb13d0312f26ba0f13da9ad3fb12a218e02.zip
ivy-cplusplus-52382fb13d0312f26ba0f13da9ad3fb12a218e02.tar.gz
ivy-cplusplus-52382fb13d0312f26ba0f13da9ad3fb12a218e02.tar.bz2
ivy-cplusplus-52382fb13d0312f26ba0f13da9ad3fb12a218e02.tar.xz
Utilisateur : Fcolin Date : 5/02/04 Heure : 18:32 Archivé dans $/Bus/Ivy Commentaire: (vss 7)
Diffstat (limited to 'Ivy/DataTypes.h')
-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