This is not really wrong, but normally the fix for this problem is to add ...
6 years, 6 months ago
(2017-10-21 05:15:24 UTC)
#3
This is not really wrong, but normally the fix for this problem is to add "using
IFixedDecimal::getPluralOperand;" in DecimalQuantity, next to the declaration of
the real function.
See https://stackoverflow.com/questions/9995421/gcc-woverloaded-virtual-warnings
See also class DecimalFormat which has using NumberFormat::format; because it
does not override every format() function.
In Java this is a pure interface, so it's confusing that this class had a ...
6 years, 6 months ago
(2017-10-21 10:21:21 UTC)
#4
In Java this is a pure interface, so it's confusing that this class had a
non-pure virtual method in the first place. I took the opportunity to
refactor the code and replace the method with a helper function.
On Oct 20, 2017 10:15 PM, <markus.icu@gmail.com> wrote:
> This is not really wrong, but normally the fix for this problem is to
> add "using IFixedDecimal::getPluralOperand;" in DecimalQuantity, next to
> the declaration of the real function.
>
> See
> https://stackoverflow.com/questions/9995421/gcc-woverloaded-
> virtual-warnings
>
> See also class DecimalFormat which has using NumberFormat::format;
> because it does not override every format() function.
>
> https://codereview.appspot.com/333920043/
>
Issue 333920043: ticket:13415 Refactoring shadowed virtual method in IFixedDecimal.
(Closed)
Created 6 years, 6 months ago by sffc
Modified 6 years, 6 months ago
Reviewers: nrunge, markus.icu
Base URL: svn+icussh://source.icu-project.org/repos/icu/trunk/icu4c/source/
Comments: 1