octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #48726] caseless_str overloads compare and inv


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #48726] caseless_str overloads compare and inverts meaning
Date: Fri, 12 Aug 2016 00:06:25 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #9, bug #48726 (project octave):

My proposal adds the strcmp and strcmpi that you would expect in Octave.

We could add operators to caseless_str but as you already found out, that is
tricky and I think it would be easy to accidentally call the operators for the
parent classes. Also, subclassing from std:: is never recommended (although
the main reason is lack of virtual destructor which we wouldn't need in this
case).

I only need a size_type in Array to make it work, so I sent a message to
maintainers list about it.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48726>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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