11 Commits

Author SHA1 Message Date
Dirk Stolle db59ef2a81 Fix a few typos 2025-04-16 02:16:49 +02:00
Andrey Semashev 9fc2a2f1ac Renamed boost::swap to boost::core::invoke_swap, deprecated boost::swap.
The rename allows to avoid forming an infinite recursion in compile time
(because of noexcept specification that needs to resolve the unqualified call
to swap) or run time (in case if the boost::swap function is the only one
suitable for the passed arguments).

To avoid the compile-time recursion, removed noexcept specification from
boost::swap. The specification is still present in boost::core::invoke_swap.

Deprecated boost::swap and associated headers. boost::core::invoke_swap
is defined in a new boost/core/invoke_swap.hpp header.

Updated docs and tests. Removed tests that check inclusion of deprecated
headers.

Fixes https://github.com/boostorg/core/issues/148.
2023-07-12 12:17:07 +03:00
Andrey Semashev eda68d4086 Trim trailing spaces in boost::swap tests. 2023-01-07 03:42:31 +03:00
Andrey Semashev 8a8738a981 Propagate noexcept specification in boost::swap.
Mark boost::swap noexcept if the type supports non-throwing swap
implementation.
2023-01-07 03:42:15 +03:00
Peter Dimov 6a91536da6 Disable -Wunused-function in swap_array(_of_array)_of_class.cpp 2021-11-01 03:05:47 +02:00
Peter Dimov 971cda2e4c Avoid -Wmissing-braces in swap_array_of_template.cpp 2021-11-01 01:45:15 +02:00
Peter Dimov 750625272f Add CMake tests 2020-01-02 20:00:11 +02:00
Peter Dimov e9f986d11e Add compile-fail test for const boost::Wrapper 2018-10-24 12:06:45 +03:00
Peter Dimov 5d251ae769 Switch swap tests to lightweight_test. 2014-08-09 12:54:49 +03:00
Andrey Semashev e94031ee1f Renamed swap tests to have the swap- prefix. This way these tests will be more apparent in the test report. 2014-06-07 03:34:21 +04:00
Andrey Semashev 15466fbd5f boost::swap tests moved to the common directory. 2014-06-01 22:57:30 +04:00