ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved