Re: gtkmm 3.0: Removing ListHandle, SListHandle, etc
- From: michi7x7 <mailing-lists michi7x7 de>
- To: gtkmm-list gnome org
- Subject: Re: gtkmm 3.0: Removing ListHandle, SListHandle, etc
- Date: Wed, 26 May 2010 19:13:36 +0200
Am 2010-05-26 17:09, schrieb Mark Roberts:
Murray Cumming a écrit :
In gtkmm 3.0, I'd like to remove the intermediate container types
because they just confuse people and make it necessary to read the
documentation.
Guillaume Brocker wrote:
I solved a similar question by making the return type of such methods
template. The effective container type choice is left to the caller,
so he can use what's most useful for him. You don't have to rewrite
the code for each container type you want to support. The only
prerequisite was the container type have to be a model of back
insertion sequence so I was able to write generic code for inserting
items in the collections.
I suspect this too would confuse the novice programmer. In any case it
would need an explanation in the docs, as does the existing solution.
Mark
Simply set the default to std::vector, I don't expect problems...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]