]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++/modules: make bits_in/out move-constructible
authorPatrick Palka <ppalka@redhat.com>
Sat, 13 Apr 2024 20:06:28 +0000 (16:06 -0400)
committerPatrick Palka <ppalka@redhat.com>
Sat, 13 Apr 2024 20:06:28 +0000 (16:06 -0400)
gcc/cp/ChangeLog:

* module.cc (struct bytes_in::bits_in): Define defaulted
move ctor.
(struct bytes_out::bits_out): Likewise.

gcc/cp/module.cc

index bbed82652d4ade2ba9663d4f987c902056521ec7..c6f71e11515c98b133657a51c6781d26d59bdf54 100644 (file)
@@ -706,6 +706,7 @@ struct bytes_in::bits_in {
     bflush ();
   }
 
+  bits_in(bits_in&&) = default;
   bits_in(const bits_in&) = delete;
   bits_in& operator=(const bits_in&) = delete;
 
@@ -752,6 +753,7 @@ struct bytes_out::bits_out {
     bflush ();
   }
 
+  bits_out(bits_out&&) = default;
   bits_out(const bits_out&) = delete;
   bits_out& operator=(const bits_out&) = delete;