Remove gdb_static_assert

C++17 makes the second parameter to static_assert optional, so we can
remove gdb_static_assert now.
This commit is contained in:
Tom Tromey
2023-10-18 20:44:11 -06:00
parent d02f31bb13
commit 69f6730df3
50 changed files with 105 additions and 110 deletions

View File

@@ -1149,7 +1149,7 @@ gdb_disassembler::print_insn (CORE_ADDR memaddr,
To do this we perform an in-place new, but this time turn on
the styling support, then we can re-disassembly the
instruction, and gain any minimal styling GDB might add. */
gdb_static_assert ((std::is_same<decltype (m_buffer),
static_assert ((std::is_same<decltype (m_buffer),
string_file>::value));
gdb_assert (!m_buffer.term_out ());
m_buffer.~string_file ();