diff options
Diffstat (limited to 'gdbsupport/packed.h')
-rw-r--r-- | gdbsupport/packed.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdbsupport/packed.h b/gdbsupport/packed.h index c9fcc50..9407b59 100644 --- a/gdbsupport/packed.h +++ b/gdbsupport/packed.h @@ -62,7 +62,7 @@ public: packed (T val) { - gdb_static_assert (sizeof (ULONGEST) >= sizeof (T)); + static_assert (sizeof (ULONGEST) >= sizeof (T)); #if PACKED_USE_ARRAY ULONGEST tmp = val; @@ -76,17 +76,17 @@ public: #endif /* Ensure size and aligment are what we expect. */ - gdb_static_assert (sizeof (packed) == Bytes); - gdb_static_assert (alignof (packed) == 1); + static_assert (sizeof (packed) == Bytes); + static_assert (alignof (packed) == 1); /* Make sure packed can be wrapped with std::atomic. */ #if HAVE_IS_TRIVIALLY_COPYABLE - gdb_static_assert (std::is_trivially_copyable<packed>::value); + static_assert (std::is_trivially_copyable<packed>::value); #endif - gdb_static_assert (std::is_copy_constructible<packed>::value); - gdb_static_assert (std::is_move_constructible<packed>::value); - gdb_static_assert (std::is_copy_assignable<packed>::value); - gdb_static_assert (std::is_move_assignable<packed>::value); + static_assert (std::is_copy_constructible<packed>::value); + static_assert (std::is_move_constructible<packed>::value); + static_assert (std::is_copy_assignable<packed>::value); + static_assert (std::is_move_assignable<packed>::value); } operator T () const noexcept |