
25 Aug
2005
25 Aug
'05
12:19 a.m.
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