Mercurial > octave
changeset 22416:2b24ab52671a
eliminate octave_int -> float, double type conversion operators
* oct-inttypes.h (octave_int<T>::operator float (void) const,
(octave_int<T>::operator double (void) const): Delete.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 01 Sep 2016 09:56:57 -0400 |
parents | a338dbafcc09 |
children | 48c00363dc74 |
files | liboctave/util/oct-inttypes.h |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/util/oct-inttypes.h Wed Aug 31 21:01:28 2016 -0700 +++ b/liboctave/util/oct-inttypes.h Thu Sep 01 09:56:57 2016 -0400 @@ -902,12 +902,6 @@ operator T (void) const { return value (); } - // char and bool operators intentionally omitted. - - operator double (void) const { return double_value (); } - - operator float (void) const { return float_value (); } - octave_int<T> operator + () const { return *this; }