Boost logo

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:


These causes in some compilers nasty truncation warnings when using
aligned_storage with its default alignment_ parameter (maximum

integer conversion resulted in truncation
          detected during:
            instantiation of class "boost::aligned_storage<size_,
                      [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, gregod at, cpdaniel at, john at