Boost logo

Boost :

Subject: Re: [boost] [type_traits] Rewrite and dependency free version
From: Peter Dimov (lists_at_[hidden])
Date: 2015-01-20 13:37:39

John Maddock wrote:

> Never mind, this one is fixed now, function_types tests should all now
> work.

Unrelated question, but is this correct?

template <std::size_t alignment_>
struct aligned_storage_imp<std::size_t(-1), alignment_>
    union data_t
        char buf[1];
        ::boost::detail::max_align align_;
    } data_;
    void* address() const { return const_cast<aligned_storage_imp*>(this); }

size_t(-1) is a special value for the alignment, not for the size parameter?

Boost list run by bdawes at, gregod at, cpdaniel at, john at