Mercurial > jwe > octave
diff libinterp/octave-value/ov-base-sparse.h @ 21134:2e5c1f766ac9
provide replacement hints for deprecated C++ functions
* oct-conf-post.in.h (OCTAVE_DEPRECATED): Accept message argument.
* error.h, errwarn.h, gripes.h, symtab.h, variables.h,
* ov-base-sparse.h, ov-base.h, ov.h, Array.h, DiagArray2.h,
* PermMatrix.h, Range.h, Sparse.h, dSparse.h, lo-array-errwarn.h,
* lo-array-gripes.h, unwind-prot.h: Change all uses of
OCTAVE_DEPRECATED.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 Jan 2016 12:15:12 -0500 |
parents | 3e7cfee5f786 |
children | 538b57866b90 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base-sparse.h Fri Jan 22 12:12:56 2016 -0500 +++ b/libinterp/octave-value/ov-base-sparse.h Fri Jan 22 12:15:12 2016 -0500 @@ -143,7 +143,8 @@ bool is_true (void) const; - OCTAVE_DEPRECATED octave_idx_type capacity (void) const { return nzmax (); } + OCTAVE_DEPRECATED ("use 'nzmax' instead") + octave_idx_type capacity (void) const { return nzmax (); } bool print_as_scalar (void) const;