-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The gcc compiler for versions prior to gcc-5 did not implement the type_traits into its entirety. In particular, the aligned_union and traits for triviality were not implemented. aligned_union is easy to implement, and has been added to this project. The triviality traits are a little more complicated, since they require compiler support to detect (e.g. intrinsics). Several of them can be implemented through traits that gcc < 5 offered that were pre-standardization -- such as 'has_trivial_copy' over 'is_trivially_copy_constructible' -- but many of them simply cannot be implemented without compiler hooks. The ones that could be implemented have been, and the ones that can't be implemented have been left defined as 'false_type', since support is simply unavailable. https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2014
- Loading branch information
1 parent
0296059
commit 87325cc
Showing
1 changed file
with
153 additions
and
2 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