diff oct-conf-post-public.in.h @ 31853:5c046a512888

fix macro for disabling move ctor and assignment op * oct-conf-post-public.in.h (OCTAVE_DISABLE_MOVE): Also include non-const argument overloads.
author John W. Eaton <jwe@octave.org>
date Fri, 17 Feb 2023 23:14:43 -0500
parents 2bf580e9f423
children 8c37bbe334d4
line wrap: on
line diff
--- a/oct-conf-post-public.in.h	Fri Feb 24 17:45:59 2023 -0500
+++ b/oct-conf-post-public.in.h	Fri Feb 17 23:14:43 2023 -0500
@@ -326,7 +326,9 @@
   X& operator = (const X&) = delete;
 
 #  define OCTAVE_DISABLE_MOVE(X)                \
+  X (X&&) = delete;                             \
   X (const X&&) = delete;                       \
+  X& operator = (X&&) = delete;                 \
   X& operator = (const X&&) = delete;
 
 #  define OCTAVE_DISABLE_COPY_MOVE(X)           \