|
Boost : |
Subject: Re: [boost] flyweight - gsoc idea - multikey-value flyweight
From: Joaquin M LópezMuñoz (joaquin_at_[hidden])
Date: 2016-02-15 01:51:41
Vicente J. Botet Escriba <vicente.botet <at> wanadoo.fr> writes:
> Hi Joaquin,
>
> I have a use case where I have several keys to the same flyweight.
>
> I was trying to associate a multi-index as factory, but I don't see how
> it could be done.
>
> I believe that I would need something like a multikey_value<Value,
> KeyExtractor1, KeyExtractor2>
>
> where KeyK should be deduced from KeyExtractorK.
>
> Have you found this use case already?
>
> Do you think this could be a good GSoC project?
Hi Vicente
This is the first time I hear about such use case... intriguing.
Can you elaborate a bit more?
* Can you provide a motivating example?
* What are the contidions in which flyweight(k1)==flyweight(k2),
with type(k1)=K1, type(k2)=K2? Note that in thÉÕ±
ÈäµÙ
±Õ
Í°)¥¹Ñ¥Ñä½±åÝ¥¡Ñ̥̥¹
Ì¥¹Ñ¥Ñä½å̸(¨!½ÜÌÑ¡¥ÌÍÕÁÁ½ÍѼ¡
ÙÝ¡¸,Äõ,Èü() ÍÐ())½
Å×µ¸43ÍÁè5׎è)Q±Í¹¥
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk