Mercurial > octave
changeset 28644:ef0775fdab2c
provide template for isinf (const octave_int<T>&)
* lo-mappers.h (isinf (const octave_int<T>&)): New template.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Aug 2020 17:40:47 -0400 |
parents | a2cb3dec4bc5 |
children | 175eedccc085 |
files | liboctave/numeric/lo-mappers.h |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/numeric/lo-mappers.h Wed Aug 19 23:52:02 2020 -0400 +++ b/liboctave/numeric/lo-mappers.h Thu Aug 20 17:40:47 2020 -0400 @@ -203,6 +203,13 @@ inline bool isinf (double x) { return std::isinf (x); } inline bool isinf (float x) { return std::isinf (x); } + template <typename T> + bool + isinf (const octave_int<T>&) + { + return false; + } + // FIXME: Do we need isinf overload for complex? template <typename T> bool