commit 233ba77d2f87ab03768b29de07d69d660b229e3c
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Mon Jul 14 13:08:47 2025 +0200
For some reason clang wants us to use delete instead of default here
Fixes clang warning:
../../../master/src/tex2lyx/Context.h:91:12: warning: explicitly defaulted
copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
91 | Context & operator=(Context const &) = default;
| ^
../../../master/src/tex2lyx/Context.h:174:26: note: copy assignment
operator of 'Context' is implicitly deleted because field 'textclass' is of
reference type 'const TeX2LyXDocClass &'
174 | TeX2LyXDocClass const & textclass;
| ^
../../../master/src/tex2lyx/Context.h:91:41: note: replace 'default' with
'delete'
91 | Context & operator=(Context const &) = default;
| ^~~~~~~
| delete
---
src/tex2lyx/Context.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tex2lyx/Context.h b/src/tex2lyx/Context.h
index 8e0d188528..fe85d5d96b 100644
--- a/src/tex2lyx/Context.h
+++ b/src/tex2lyx/Context.h
@@ -88,7 +88,7 @@ public:
///
~Context();
///
- Context & operator=(Context const &) = default;
+ Context & operator=(Context const &) = delete;
/// Output a \\begin_layout if requested
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs