From 7ebfdb3e7b71fdd315032adb0854e28f0073e1f7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 27 Sep 2021 08:04:28 -0700 Subject: Added explicit assignment/comparison operators. Added = and == to all primitive types, not to the container types (yet?). --- c++-libbu++/src/float.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'c++-libbu++/src/float.h') 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 virtual void write( Bu::Stream &rOut ) const; virtual void read( Bu::Stream &rIn, char cType ); + Gats::Float &operator=( const Gats::Float &rhs ); + Gats::Float &operator=( float &rhs ); + bool operator==( const Gats::Float &rhs ) const; + bool operator==( float rhs ) const; + private: double fVal; mutable Bu::String sWriteCache; -- cgit v1.2.3