
----- Original Message ----- From: "Eyal Farago" <eyal.farago@actimize.com> To: <boost@lists.boost.org> Sent: Tuesday, August 09, 2005 3:22 AM Subject: Re: [boost] Improved boost::any
I read the code project article and I have few comments:
1. why optimize only for types smaller than void*? you can specify a different max size (bigger than sizeof(void*) and probably a product of it with another integer) to achieve even better results.
A very interesting idea, perhaps Pablo would be able to make this happen.
2. the implementation is pretty messy and quite dangerous, I'm quite sure it wouldn't compile/work on multimple platforms, and the first one that pops into my mind is solaris which enforce proper alighnment...
Where specifically do you think alignment is a problem? Also is there a "safe" way to cast a type X with size <= void* to a void*? Thanks for the comments! - Christopher Diggins