|
Boost : |
From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2004-08-23 07:48:37
Most templates in these header take an alignment parameter
of type size_t, yet a few of them accept an int instead:
is_aligned
type_with_alignment
These causes in some compilers nasty truncation warnings when using
aligned_storage with its default alignment_ parameter (maximum
alignment)
integer conversion resulted in truncation
detected during:
instantiation of class "boost::aligned_storage<size_,
alignment_>
[with size_=16UL,
alignment_=18446744073709551615UL]" at
line 114 of...
1. Is there any fundamental reason why some alingment parameters are
int instead of size_t?
2. If not, any objection to fixing this in the CVS?
3. Could it be the other way around, namely that aligned_storage must
use ints instead of size_t's?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk