Re: [boost] Mini-review request: aligned_storage.hpp
by Douglas Gregor other posts by this author
Aug 7 2002 3:59PM messages near this date
Re: [boost] Mini-review request: aligned_storage.hpp
|
[boost] Re: Mini-review request: aligned_storage.hpp
On Wednesday 07 August 2002 10:58 am, Fernando Cacciola wrote:
> I'm not sure if the interface which takes two integers is good, though; It
> does have potential for greater flexibility, but it is also significantly
> more obscure for the user (IMHO).
> In all the examples of this sort of utility that I've seen, 'size_' is
> always 'sizeof(T)' and 'alignment_' is always
> 'boost::alignment_of<T>::value'; so, unless a concrete example pops up, I
> prefer to parametrize aligned_storage in terms of T + Count (for arrays) +
> a tag struct indicating minimum (default) or maximum alignment.
Variant will have `size_` = the maximum size of any type in the variant and
`align_' = the LCM of all types in the variant.
Doug
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Fernando Cacciola
Eric Friedman
Fernando Cacciola
Douglas Gregor
Fernando Cacciola
Douglas Gregor
Itay Maman
David Abrahams
Eric Friedman
Itay Maman
Fernando Cacciola
David Abrahams
Eric Friedman
Douglas Gregor
|