[committed] libstdc++: Add missing 'inline' specifiers to net::ip functions [PR 100259]

Jonathan Wakely jwakely@redhat.com
Mon Apr 26 10:41:31 GMT 2021


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.

-------------- next part --------------
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(); }
 


More information about the Libstdc++ mailing list