Name |
Last commit
|
Last update |
---|---|---|
.. | ||
allocator | ||
capacity | ||
cons | ||
hash | ||
modifiers | ||
requirements | ||
1.cc | ||
21244.cc | ||
23632.cc | ||
6886.cc | ||
72847.cc | ||
80893.cc | ||
82558.cc | ||
clear_allocator.cc | ||
emplace.cc | ||
emplace_cxx17_return.cc | ||
swap.cc |
If the allocator isn't default constructible then checking if the default constructor throws in an exception specification makes the declaration invalid. Use the type trait instead. PR libstdc++/87809 * include/bits/forward_list.h (_Fwd_list_impl::_Fwd_list_impl()): Use trait in exception-specification instead of possibly invalid expression. * include/bits/stl_bvector.h (_Bvector_impl::_Bvector_impl()): Likewise. * include/bits/stl_list.h (_List_impl::_List_impl()): Likewise. * include/bits/stl_vector.h (_Vector_impl::_Vector_impl()): Likewise. * testsuite/23_containers/forward_list/cons/87809.cc: New test. * testsuite/23_containers/list/cons/87809.cc: New test. * testsuite/23_containers/vector/bool/cons/87809.cc: New test. * testsuite/23_containers/vector/cons/87809.cc: New test. From-SVN: r265626
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
allocator | Loading commit data... | |
capacity | Loading commit data... | |
cons | Loading commit data... | |
hash | Loading commit data... | |
modifiers | Loading commit data... | |
requirements | Loading commit data... | |
1.cc | Loading commit data... | |
21244.cc | Loading commit data... | |
23632.cc | Loading commit data... | |
6886.cc | Loading commit data... | |
72847.cc | Loading commit data... | |
80893.cc | Loading commit data... | |
82558.cc | Loading commit data... | |
clear_allocator.cc | Loading commit data... | |
emplace.cc | Loading commit data... | |
emplace_cxx17_return.cc | Loading commit data... | |
swap.cc | Loading commit data... |