* include/experimental/socket (basic_socket::is_open()
(basic_socket_acceptor::is_open()): Use _GLIBCXX_NODISCARD macro.
2020-05-21 Jonathan Wakely <jwakely@redhat.com>
+ * include/experimental/socket (basic_socket::is_open()
+ (basic_socket_acceptor::is_open()): Use _GLIBCXX_NODISCARD macro.
+
* include/experimental/bits/net.h (__endpoint, __protocol)
(__acceptable_protocol, __inet_protocol): New concepts.
(__detail::__is_endpoint): Move trait from <experimental/socket>.
native_handle_type release(error_code& __ec)
{ return __base::release(__ec); }
- [[__nodiscard__]] bool
+ _GLIBCXX_NODISCARD bool
is_open() const noexcept { return __base::is_open(); }
void close() { close(__throw_on_error{"basic_socket::close"}); }
native_handle_type release(error_code& __ec)
{ return __base::release(__ec); }
- [[__nodiscard__]] bool
+ _GLIBCXX_NODISCARD bool
is_open() const noexcept { return __base::is_open(); }
void