Suggestions for new types in the Boost.Any library

Since there has been interest in making changes to boost::any, I thought I would suggest a couple of new types which would be appropriate for the any namespace, which I find useful and use commonly. - A typed_any. This is a type very similar to any with the added restriction that it can not be reset, it must be initialized with a type, and once initialized it can only hold values of that type. I am using a homegrown version an interpreter for a strongly typed scripting language (HeronScript). - any_ptr. The name says it all. Anyone else interested in these types? Christopher Diggins http://www.cdiggins.com

On 8/24/05, christopher diggins <cdiggins@videotron.ca> wrote:
- A typed_any. This is a type very similar to any with the added restriction that it can not be reset, it must be initialized with a type, and once initialized it can only hold values of that type.
This sounds like just the ticket for the database binding stuff being discussed in the ODBC thread. Would it be possible to do the type initialization lazily though (e.g. after construction)?
- any_ptr. The name says it all.
Does it? I'm confused as to what it is. Is it more or less a boost::shared_ptr<any>, or is it something else?
Anyone else interested in these types?
Yes. -- Caleb Epstein caleb dot epstein at gmail dot com
participants (2)
-
Caleb Epstein
-
christopher diggins