[gcc/devel/autopar_devel] libstdc++: Make net::system_context tag type constructor explicit

Giuliano Belinassi giulianob@gcc.gnu.org
Sun Aug 23 00:26:59 GMT 2020


https://gcc.gnu.org/g:3c2caa2c30e9db96cd4fdf096c3bd6f5af9db90a

commit 3c2caa2c30e9db96cd4fdf096c3bd6f5af9db90a
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Aug 11 16:16:21 2020 +0100

    libstdc++: Make net::system_context tag type constructor explicit
    
    libstdc++-v3/ChangeLog:
    
            * include/experimental/executor (system_context::a__tag): Make
            default constructor explicit.

Diff:
---
 libstdc++-v3/include/experimental/executor | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/experimental/executor b/libstdc++-v3/include/experimental/executor
index b5dc3035756..1561050ae23 100644
--- a/libstdc++-v3/include/experimental/executor
+++ b/libstdc++-v3/include/experimental/executor
@@ -884,7 +884,7 @@ inline namespace v1
   private:
     friend system_executor;
 
-    struct __tag { };
+    struct __tag { explicit __tag() = default; };
     system_context(__tag) { }
 
     thread			_M_thread;


More information about the Libstdc++-cvs mailing list