aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/float.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/float.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 'c++-libbu++/src/float.h')
-rw-r--r--c++-libbu++/src/float.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/c++-libbu++/src/float.h b/c++-libbu++/src/float.h
index 9aab0a5..0e42f76 100644
--- a/c++-libbu++/src/float.h
+++ b/c++-libbu++/src/float.h
@@ -29,6 +29,11 @@ namespace Gats
29 virtual void write( Bu::Stream &rOut ) const; 29 virtual void write( Bu::Stream &rOut ) const;
30 virtual void read( Bu::Stream &rIn, char cType ); 30 virtual void read( Bu::Stream &rIn, char cType );
31 31
32 Gats::Float &operator=( const Gats::Float &rhs );
33 Gats::Float &operator=( float &rhs );
34 bool operator==( const Gats::Float &rhs ) const;
35 bool operator==( float rhs ) const;
36
32 private: 37 private:
33 double fVal; 38 double fVal;
34 mutable Bu::String sWriteCache; 39 mutable Bu::String sWriteCache;