|
Boost : |
From: Martin Wille (mw8329_at_[hidden])
Date: 2005-03-14 11:40:36
Joaquín Mª López Muñoz wrote:
> Would some kind sould please test the following in GCC 4.0.0 20050309?
>
> #include <cstddef>
>
> template<
> std::size_t size_,
> std::size_t alignment_ = std::size_t(-1)>
> struct aligned_storage
> {
> };
>
> template<typename T>
> struct foo
> {
> aligned_storage<sizeof(T)> as;
> };
>
> int main()
> {
> foo<double> f;
> }
>
> I'm trying to isolate the aligned_storage-problem with GCC 4.0 shown at:
>
> http://tinyurl.com/4hxy5
13: error: '(size_t)((-1))' is not a valid template argument for type
'unsigned int' because it is a non-constant expression
Looks like you found a simple test case.
Regards,
m
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk