Re: Gtk::TreeModel::get_value_vfunc() constness
- From: Dominique Würtz <dwuertz gmx net>
- To: Kjell Ahlstedt <kjell ahlstedt bredband net>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Gtk::TreeModel::get_value_vfunc() constness
- Date: Wed, 02 Oct 2013 16:59:21 +0200
Am Mittwoch, den 02.10.2013, 09:33 +0200 schrieb Kjell Ahlstedt:
A cache is a kind of class member data that can very reasonably be
declared *mutable*.
When the cache is changed, the physical state of the owning object
changes, but its logical state, as seen by other objects, does not
change. That's the kind of data that the *mutable* keyword is meant for.
Kjell
This makes sense and works as expected, thanks!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]