* [committed] libstdc++: Add missing 'inline' specifiers to net::ip functions [PR 100259]
@ 2021-04-26 10:41 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-04-26 10:41 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
libstdc++-v3/ChangeLog:
PR libstdc++/100259
* include/experimental/internet (net::ip::make_error_code)
(net::ip::make_error_condition, net::ip::make_network_v4)
(net::ip::operator==(const udp&, const udp&)): Add 'inline'.
Tested x86_64-linux. Committed to trunk.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1669 bytes --]
commit 3f4aa4579a6c03e0a0b0a6aec68aa5a301264d45
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Apr 26 11:37:38 2021
libstdc++: Add missing 'inline' specifiers to net::ip functions [PR 100259]
libstdc++-v3/ChangeLog:
PR libstdc++/100259
* include/experimental/internet (net::ip::make_error_code)
(net::ip::make_error_condition, net::ip::make_network_v4)
(net::ip::operator==(const udp&, const udp&)): Add 'inline'.
diff --git a/libstdc++-v3/include/experimental/internet b/libstdc++-v3/include/experimental/internet
index c79e6d4b2b3..cd19de59e70 100644
--- a/libstdc++-v3/include/experimental/internet
+++ b/libstdc++-v3/include/experimental/internet
@@ -101,10 +101,10 @@ namespace ip
return __c;
}
- error_code make_error_code(resolver_errc __e) noexcept
+ inline error_code make_error_code(resolver_errc __e) noexcept
{ return error_code(static_cast<int>(__e), resolver_category()); }
- error_condition make_error_condition(resolver_errc __e) noexcept
+ inline error_condition make_error_condition(resolver_errc __e) noexcept
{ return error_condition(static_cast<int>(__e), resolver_category()); }
/// @}
@@ -1334,7 +1334,7 @@ namespace ip
make_network_v4(const address_v4& __a, int __prefix_len)
{ return network_v4{__a, __prefix_len}; }
- network_v4
+ inline network_v4
make_network_v4(const address_v4& __a, const address_v4& __mask)
{ return network_v4{ __a, __mask }; }
@@ -2157,7 +2157,7 @@ namespace ip
* @{
*/
- bool
+ inline bool
operator==(const udp& __a, const udp& __b)
{ return __a.family() == __b.family(); }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-26 10:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 10:41 [committed] libstdc++: Add missing 'inline' specifiers to net::ip functions [PR 100259] Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).