Reuse is_swappable implementation in is_nothrow_swappable for gcc < 4.7.

This avoids applying noexcept operator to a potentially invalid
swap expression, which should resolve ICE with gcc 4.6.
This commit is contained in:
Andrey Semashev committed 2023-02-19 16:22:48 +03:00
1 parent fc61f298bf
commit 5f43b22861
4 files changed
+21 -5

No files matched your search

+1
View File
@@ -10,6 +10,7 @@
[h4 Boost-1.82.0]
* Added __is_swappable trait.
* Added a workaround for gcc 4.6 that allows __is_nothrow_swappable to work.
[h4 Boost-1.70.0]