Mercurial > octave
changeset 31658:963672a9ae7b stable
* Array.h (Array::is_shared): Declare const.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 09 Dec 2022 12:21:14 -0500 |
parents | 33ce26ffc42b |
children | 4e6c415695d3 ccbf38427774 |
files | liboctave/array/Array.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/array/Array.h Thu Dec 08 17:56:31 2022 -0800 +++ b/liboctave/array/Array.h Fri Dec 09 12:21:14 2022 -0500 @@ -671,7 +671,7 @@ OCTARRAY_API T * fortran_vec (void); - OCTARRAY_OVERRIDABLE_FUNC_API bool is_shared (void) + OCTARRAY_OVERRIDABLE_FUNC_API bool is_shared (void) const { return m_rep->m_count > 1; } OCTARRAY_OVERRIDABLE_FUNC_API int ndims (void) const