libstdc++ Simplify definition of net::socket_base constants
authorJonathan Wakely <jwakely@redhat.com>
Fri, 23 Apr 2021 12:25:56 +0000 (13:25 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 23 Apr 2021 12:54:34 +0000 (13:54 +0100)
commita752a43073dc49909c017fd52feacd7526ed31c0
tree3f655656a48f78f39c13063e62585e9a8299b2b3
parent87fc34a461cf362947a430d8a241f653fd83bc7b
libstdc++ Simplify definition of net::socket_base constants

libstdc++-v3/ChangeLog:

* include/experimental/socket (socket_base::shutdown_type):
(socket_base::wait_type, socket_base::message_flags):
Remove enumerators. Initialize constants directly with desired
values.
(socket_base::message_flags): Make all operators constexpr and
noexcept.
* testsuite/util/testsuite_common_types.h (test_bitmask_values):
New test utility.
* testsuite/experimental/net/socket/socket_base.cc: New test.
libstdc++-v3/include/experimental/socket
libstdc++-v3/testsuite/experimental/net/socket/socket_base.cc [new file with mode: 0644]
libstdc++-v3/testsuite/util/testsuite_common_types.h