aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/integer.h
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2021-09-27 08:04:28 -0700
committerMike Buland <mbuland@penny-arcade.com>2021-09-27 08:04:28 -0700
commit7ebfdb3e7b71fdd315032adb0854e28f0073e1f7 (patch)
treea69ac57986342792cc76e2759091e855b3255ca8 /c++-libbu++/src/integer.h
parent701b05de4d2e79afd88ef8ddf93ba0fcc0eb5b14 (diff)
downloadlibgats-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/integer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/c++-libbu++/src/integer.h b/c++-libbu++/src/integer.h
index d1ef3aa..e0a8d26 100644
--- a/c++-libbu++/src/integer.h
+++ b/c++-libbu++/src/integer.h
@@ -31,6 +31,11 @@ namespace Gats
31 virtual void write( Bu::Stream &rOut ) const; 31 virtual void write( Bu::Stream &rOut ) const;
32 virtual void read( Bu::Stream &rIn, char cType ); 32 virtual void read( Bu::Stream &rIn, char cType );
33 33
34 Gats::Integer &operator=( const Gats::Integer &rhs );
35 Gats::Integer &operator=( int64_t rhs );
36 bool operator==( const Gats::Integer &rhs );
37 bool operator==( int64_t rhs );
38
34 template<typename itype> 39 template<typename itype>
35 static void readPackedInt( Bu::Stream &rStream, itype &rOut ) 40 static void readPackedInt( Bu::Stream &rStream, itype &rOut )
36 { 41 {