Vicente J. Botet Escriba
Le 16/02/2016 16:00, Joaquin M LópezMuñoz a écrit :
Vicente J. Botet Escriba
writes: Le 15/02/2016 07:51, Joaquin M LópezMuñoz a écrit :
http://coliru.stacked-crooked.com/a/6dab2c556433fb03
[...]
* [...] the obvious drawback (among others) that sizeof(multi_flyweight)==2*sizeof(void*), where sizeof(flyweight) is typically sizeof(void*). Whether this is acceptable or not depends really on the use cases, I'd say.
No, I want really a fly weight. If I have N key the multi_flyweight will not be fly weight anymore.
sizeof(multi_flyweight)==N*sizeof(void*)
No, this is not the case. sizeof(multi_flyweight)==2*sizeof(void*) for every N. The extra word is Boost.Variant's book-keeping data for type determination (internal member which_).
* Is this a desireable extension to Boost.Flyweight? I don't have a strong opinion myself, others' most welcome.
I have no problem if this is in another library or class. What interest me is the functionality with the best performances in space and time.
It'd be great if we can gauge potential interest besides your own.
* Is this a good candidate for GSoC? If the answer to the above is yes, I'd say this is certainly in the good ambition/impact ratio window for a GSoC project, and I'd be happy to mentor.
Glad to hear that. I believe this makes a good GSoC project. I could help you if needed. Do you mind to add an entry on the wiki https://svn.boost.org/trac/boost/wiki/SoC2016?
With pleasure. What's the deadline for this? Joaquín M López Muñoz Telefónica