Improve max_align_t usage

Description

C++ doesn't guarantee that max_align_t will be defined unless the appropriate header is included. Since use of <stddef.h> is deprecated, <cstddef> should be included, and max_align_t should be looked for under the std namespace rather than in the global namespace.

There is a version range of Apple clang where this change is needed to avoid compilation failure.

Activity

Show:
Jeff Genovy
January 9, 2020, 11:43 PM
Joshua Root
October 21, 2019, 7:28 PM

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Jeff Genovy

Reporter

Joshua Root

Components

Reviewer

Andy Heninger

Priority

major

Fix versions