
9 Aug
2005
9 Aug
'05
6:08 a.m.
christopher diggins wrote:
I have developed a type very similar to boost::any which requires less memory and significantly reduces the number of allocations / deallocations. If anyone is interested I have posted a brief article about it at CodeProject http://www.codeproject.com/useritems/dynamic_typing.asp and I have uploaded the source to the vault ( http://boost-sandbox.sourceforge.net/vault/index.php ). Is there any interest?
If the trick is to use "void*" pointer to data for storing data when it's small, then: - it's interesting to see performance comparison for any<string>, or any<some_other_large_class> - can't this be just patch to boost::any, as opposed to completely different class? - Volodya