octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elem vs. xelem vs. checkelem


From: John W. Eaton
Subject: Re: elem vs. xelem vs. checkelem
Date: Mon, 15 May 2017 18:07:42 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

On 05/15/2017 05:17 PM, Rik wrote:
jwe,

I'm getting the following warning during compilation:

libinterp/octave-value/ov-lazy-idx.cc:75:36: warning: ‘octave_idx_type
idx_vector::checkelem(octave_idx_type) const’ is deprecated: use 'elem'
instead [-Wdeprecated-declarations]

For now, I removed the OCTAVE_DEPRECATED attribute.

Besides needing a fix, when should checkelem be used in preference to elem
or xelem?

I'm not sure yet. I thought we could deprecated eliminate the checkelem functions now, but some of them throw index exceptions and those are needed for proper error reporting.

jwe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]