[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fixing compiler warnings
From: |
David Kastrup |
Subject: |
Re: fixing compiler warnings |
Date: |
Sun, 26 Dec 2010 21:13:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Werner LEMBERG <address@hidden> writes:
>> Are you certain that this is a good change:
>
>> +Font_metric::get_indexed_char_dimensions (size_t) const
>> {
>> return Box (Interval (0, 0), Interval (0, 0));
>> }
>
> Yes, as Han-Wen already mentioned. Derived classes must provide
> something useful.
If they must, wouldn't it be saner to throw an exception here instead of
returning nonsense?
--
David Kastrup