This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Define __gnu_cxx::__aligned_buffer


This patch adds a new utility type that wraps a member of type
std::aligned_storage and provides some convenient accessors, to
replace repeated uses of the same code in the library.

The new type should also be used in the other node-based containers
when they gain C++11 allocator support.

        * include/Makefile.am: Add ext/aligned_buffer.h
        * include/Makefile.in: Regenerate.
        * include/ext/aligned_buffer.h: New.
        * include/std/future (_Result): Use __aligned_buffer.
        * include/bits/forward_list.h (_Fwd_list_node): Likewise.
        * include/bits/shared_ptr_base.h (_Sp_counted_ptr_inplace): Likewise.
        * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error line
        number.

Tested x86_64-linux, committed to trunk.

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]