|
Boost : |
Subject: Re: [boost] [type_factory] new utility/class proposal
From: Robert Ramey (ramey_at_[hidden])
Date: 2011-05-10 22:27:00
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk