
11 May
2011
11 May
'11
2:27 a.m.
Vlad Lazarenko wrote:
Dear Boost developers,
How many times in your experience you needed to associate a type with some identifier known at run-time only? Its like having an associative container with numeric key and type as a value. Not object, but type. This is a concept similar to object factory pattern but with no objects, only their types. I call it a type factory.
There might be a solution for this in Boost already but I havent seen it. Please forgive me if I am just being blind.
This problem has been addressed in the implementation of the serialization library - albeit in a different way. Take a look at the serialization library documentation under "extended_type_info" Robert Ramey