mirror of
https://github.com/boostorg/json.git
synced 2026-01-24 05:52:17 +00:00
Use alignas(T) over alignas(alignof(T))
This commit is contained in:
committed by
Vinnie Falco
parent
a09d596781
commit
d5d2dfd648
@@ -20,7 +20,7 @@ BOOST_JSON_NS_BEGIN
|
||||
|
||||
//----------------------------------------------------------
|
||||
|
||||
struct alignas(alignof(value))
|
||||
struct alignas(value)
|
||||
array::table
|
||||
{
|
||||
std::uint32_t size = 0;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
BOOST_JSON_NS_BEGIN
|
||||
|
||||
struct alignas(alignof(detail::max_align_t))
|
||||
struct alignas(detail::max_align_t)
|
||||
monotonic_resource::block : block_base
|
||||
{
|
||||
};
|
||||
|
||||
@@ -20,7 +20,7 @@ BOOST_JSON_NS_BEGIN
|
||||
|
||||
//----------------------------------------------------------
|
||||
|
||||
struct alignas(alignof(key_value_pair))
|
||||
struct alignas(key_value_pair)
|
||||
object::table
|
||||
{
|
||||
std::uint32_t size = 0;
|
||||
|
||||
Reference in New Issue
Block a user