summaryrefslogtreecommitdiff
path: root/Bus/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:54:24 +0000
committerfcolin2007-02-01 12:54:24 +0000
commit1b098d9f7f6ceea44f9f8ae549af2dabf1756503 (patch)
tree5c3a17b4ebd376a3b99410133424126b733473c0 /Bus/Ivy
parenta7362ff18ea16d485fdecbd7a7866bccb5350a88 (diff)
downloadivy-cplusplus-1b098d9f7f6ceea44f9f8ae549af2dabf1756503.zip
ivy-cplusplus-1b098d9f7f6ceea44f9f8ae549af2dabf1756503.tar.gz
ivy-cplusplus-1b098d9f7f6ceea44f9f8ae549af2dabf1756503.tar.bz2
ivy-cplusplus-1b098d9f7f6ceea44f9f8ae549af2dabf1756503.tar.xz
Utilisateur : Fcolin Date : 5/02/04 Heure : 18:32 Archivé dans $/Bus/Ivy Commentaire: (vss 7)
Diffstat (limited to 'Bus/Ivy')
-rw-r--r--Bus/Ivy/DataTypes.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/Bus/Ivy/DataTypes.h b/Bus/Ivy/DataTypes.h
index 2267de7..daf9470 100644
--- a/Bus/Ivy/DataTypes.h
+++ b/Bus/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