gcc/libstdc++-v3/include/ext
Jonathan Wakely 8c9b385288 PR libstdc++/88119 use alignof in std::alignment_of, not __alignof__
Now that __alignof__ and alignof sometimes disagree it matters which one
we use. The standard says that std::alignment_of<T>::value equals
alignof(T), so we need to use that.

Change the only uses of alignment_of to use __alignof__ to avoid a
change in alignment.

	PR libstdc++/88119
	* include/ext/aligned_buffer.h (__aligned_membuf): Add comment.
	(__aligned_buffer): Use __alignof__ instead of std::alignment_of.
	* include/std/type_traits (alignment_of): Use alignof instead of
	__alignof__.
	* testsuite/20_util/alignment_of/value.cc: Fix test to check values
	match alignof not __alignof__, as required by the standard.

From-SVN: r266613
2018-11-29 12:32:57 +00:00
..
pb_ds Update copyright years. 2018-01-03 11:03:58 +01:00
algorithm Update copyright years. 2018-01-03 11:03:58 +01:00
aligned_buffer.h PR libstdc++/88119 use alignof in std::alignment_of, not __alignof__ 2018-11-29 12:32:57 +00:00
alloc_traits.h Relocation (= move+destroy) 2018-10-25 13:03:13 +00:00
array_allocator.h Update copyright years. 2018-01-03 11:03:58 +01:00
atomicity.h Update copyright years. 2018-01-03 11:03:58 +01:00
bitmap_allocator.h Update copyright years. 2018-01-03 11:03:58 +01:00
cast.h Update copyright years. 2018-01-03 11:03:58 +01:00
cmath Update copyright years. 2018-01-03 11:03:58 +01:00
codecvt_specializations.h Update copyright years. 2018-01-03 11:03:58 +01:00
concurrence.h PR libstdc++/67843 set shared_ptr lock policy at build-time 2018-11-27 23:25:56 +00:00
debug_allocator.h Make ext allocators support heterogeneous equality comparison 2018-10-11 12:32:29 +01:00
enc_filebuf.h Update copyright years. 2018-01-03 11:03:58 +01:00
extptr_allocator.h Update copyright years. 2018-01-03 11:03:58 +01:00
functional Update copyright years. 2018-01-03 11:03:58 +01:00
iterator Update copyright years. 2018-01-03 11:03:58 +01:00
malloc_allocator.h Relocation (= move+destroy) 2018-10-25 13:03:13 +00:00
memory 2018-06-05 François Dumont <fdumont@gcc.gnu.org> 2018-06-05 05:47:44 +00:00
mt_allocator.h Update copyright years. 2018-01-03 11:03:58 +01:00
new_allocator.h Relocation (= move+destroy) 2018-10-25 13:03:13 +00:00
numeric Update copyright years. 2018-01-03 11:03:58 +01:00
numeric_traits.h Update copyright years. 2018-01-03 11:03:58 +01:00
pod_char_traits.h Update copyright years. 2018-01-03 11:03:58 +01:00
pointer.h Fix __gnu_cxx::_Pointer_adapter for long long arithmetic 2018-08-30 13:24:06 +01:00
pool_allocator.h Update copyright years. 2018-01-03 11:03:58 +01:00
random P0935R0 Eradicating unnecessarily explicit default constructors 2018-06-14 14:32:53 +01:00
random.tcc PR libstdc++/85749 constrain seed sequences for random number engines 2018-05-15 16:36:46 +01:00
rb_tree Update copyright years. 2018-01-03 11:03:58 +01:00
rc_string_base.h Update copyright years. 2018-01-03 11:03:58 +01:00
rope Rope iterators: don't retain pointers when copied 2018-08-14 12:23:50 +01:00
ropeimpl.h Update copyright years. 2018-01-03 11:03:58 +01:00
slist Update copyright years. 2018-01-03 11:03:58 +01:00
sso_string_base.h Update copyright years. 2018-01-03 11:03:58 +01:00
stdio_filebuf.h Update copyright years. 2018-01-03 11:03:58 +01:00
stdio_sync_filebuf.h Update copyright years. 2018-01-03 11:03:58 +01:00
string_conversions.h Update copyright years. 2018-01-03 11:03:58 +01:00
throw_allocator.h 2018-11-19 François Dumont <fdumont@gcc.gnu.org> 2018-11-19 21:02:17 +00:00
type_traits.h Update copyright years. 2018-01-03 11:03:58 +01:00
typelist.h Update copyright years. 2018-01-03 11:03:58 +01:00
vstring_fwd.h Remove char16_t and char32_t dependency on <stdint.h> 2018-07-26 15:02:01 +01:00
vstring_util.h Update copyright years. 2018-01-03 11:03:58 +01:00
vstring.h Remove char16_t and char32_t dependency on <stdint.h> 2018-07-26 15:02:01 +01:00
vstring.tcc Update copyright years. 2018-01-03 11:03:58 +01:00