Boost logo

Boost :

From: christopher diggins (cdiggins_at_[hidden])
Date: 2005-08-09 08:58:19

----- Original Message -----
From: "Eyal Farago" <eyal.farago_at_[hidden]>
To: <boost_at_[hidden]>
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

Boost list run by bdawes at, gregod at, cpdaniel at, john at