diff options
| author | Mike Buland <mbuland@penny-arcade.com> | 2021-09-27 08:04:28 -0700 |
|---|---|---|
| committer | Mike Buland <mbuland@penny-arcade.com> | 2021-09-27 08:04:28 -0700 |
| commit | 7ebfdb3e7b71fdd315032adb0854e28f0073e1f7 (patch) | |
| tree | a69ac57986342792cc76e2759091e855b3255ca8 /c++-libbu++/src/string.h | |
| parent | 701b05de4d2e79afd88ef8ddf93ba0fcc0eb5b14 (diff) | |
| download | libgats-7ebfdb3e7b71fdd315032adb0854e28f0073e1f7.tar.gz libgats-7ebfdb3e7b71fdd315032adb0854e28f0073e1f7.tar.bz2 libgats-7ebfdb3e7b71fdd315032adb0854e28f0073e1f7.tar.xz libgats-7ebfdb3e7b71fdd315032adb0854e28f0073e1f7.zip | |
Added explicit assignment/comparison operators.
Added = and == to all primitive types, not to the container types
(yet?).
Diffstat (limited to '')
| -rw-r--r-- | c++-libbu++/src/string.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/c++-libbu++/src/string.h b/c++-libbu++/src/string.h index b37137e..eae60e3 100644 --- a/c++-libbu++/src/string.h +++ b/c++-libbu++/src/string.h | |||
| @@ -30,6 +30,13 @@ namespace Gats | |||
| 30 | virtual void write( Bu::Stream &rOut ) const; | 30 | virtual void write( Bu::Stream &rOut ) const; |
| 31 | virtual void read( Bu::Stream &rIn, char cType ); | 31 | virtual void read( Bu::Stream &rIn, char cType ); |
| 32 | 32 | ||
| 33 | Gats::String &operator=( const char *s ); | ||
| 34 | Gats::String &operator=( const Gats::String &s ); | ||
| 35 | Gats::String &operator=( const Bu::String &s ); | ||
| 36 | bool operator==( const char *s ) const; | ||
| 37 | bool operator==( const Gats::String &s ) const; | ||
| 38 | bool operator==( const Bu::String &s ) const; | ||
| 39 | |||
| 33 | private: | 40 | private: |
| 34 | }; | 41 | }; |
| 35 | }; | 42 | }; |
