diff options
author | Tom de Vries <tdevries@suse.de> | 2023-08-17 10:41:34 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-08-17 10:41:34 +0200 |
commit | 63b87362a5800890ccc5ca8494a9e0443472ef99 (patch) | |
tree | 11cbdf1899ae5bc8e17efc44b644812acf05604e /gdb/ui-out.h | |
parent | 84c9951ebd1da1aa5f0c5a614fe0b630dc603b3b (diff) | |
download | gdb-63b87362a5800890ccc5ca8494a9e0443472ef99.zip gdb-63b87362a5800890ccc5ca8494a9e0443472ef99.tar.gz gdb-63b87362a5800890ccc5ca8494a9e0443472ef99.tar.bz2 |
[gdb/build, c++20] Fix DISABLE_COPY_AND_ASSIGN use in ui_out_emit_type
When building gdb with -std=c++20, I run into:
...
include/ansidecl.h:342:9: error: expected unqualified-id before ‘const’
342 | TYPE (const TYPE&) = delete; \
| ^~~~~
gdb/ui-out.h:412:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’
412 | DISABLE_COPY_AND_ASSIGN (ui_out_emit_type<Type>);
| ^~~~~~~~~~~~~~~~~~~~~~~
...
Fix this by using "DISABLE_COPY_AND_ASSIGN (ui_out_emit_type)".
Tested on x86_64-linux.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r-- | gdb/ui-out.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h index ba5b1de..07567a1 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -409,7 +409,7 @@ public: m_uiout->end (Type); } - DISABLE_COPY_AND_ASSIGN (ui_out_emit_type<Type>); + DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); private: |