octave-maintainers
[Top][All Lists]
Advanced

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

Re: octave_base_value::print const-ness and method overload


From: John W. Eaton
Subject: Re: octave_base_value::print const-ness and method overload
Date: Mon, 27 Jan 2014 11:29:44 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9

On 01/27/2014 07:28 AM, Michael Goffioul wrote:

I thought also about that solution, but that's only part of the problem.
You're still unable to compile, because you can't call the private
constructor octave_value(const octave_base_value*).

OK. In that case, I think it is better to remove the const qualifier on the print method than it is to use const_cast to cast away const.

jwe



reply via email to

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