Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inplace_function: Fix unit-test failures on libstdc++.
The failures were my fault, in 0b924dc. It turns out that libstdc++'s `std::aligned_storage_t` does not report the correct alignment for capacities less than about 16 bytes, which means that our struct layout was still broken on libstdc++... only now there are unit-tests that fail when the layout is broken! Fix this for now by reinventing the wheel. I am also going to ping the libstdc++ bug, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61458 to see if we can get any movement there. Guard the new code under `#if defined(__GLIBCXX__)` so that we remember to rip it out if/when libstdc++ gets their act together.
- Loading branch information
1 parent
2777d50
commit 98baf1a
Showing
2 changed files
with
55 additions
and
9 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