Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ICC17: Work around alignas and constexpr bugs
* Use of the nextPowerOfTwo constexpr function in an alignas argument failed compilation. As a workaround refactor the function to a trait. * alignas on the class declaration is ignored by ICC17. Therefore, move the alignas attribute down onto the first non-static data member. * Only GCC implements an upper bound on over-alignment, so abstract that into the BoundedAlignment trait. * The change to nextPowerOfTwo required a subsequent change to left_size and right_size: the function argument must now be a template parameter. Signed-off-by: Matthias Kretz <kretz@kde.org>
- Loading branch information
Showing
5 changed files
with
105 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters