10 Commits

Author SHA1 Message Date
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
a96e8b977b Added missing copyright comments. Corrected links to the documentation on the comments. 2014-06-12 02:10:34 +04:00
Glen Fernandes
60c9a35d86 Move headers to core; add quickbook documentation 2014-06-02 00:46:33 -07:00
Eric Niebler
31b36d136d value_init and swap work on nvidia gpu's 2014-06-01 21:58:51 +04:00
Niels Dekker
bf03fdf924 Added explanatory comments, requested by Isaac Dupree, "Re: [boost] [swap] Renaming boost_swap_impl::swap_impl and/or its namespace?", http://lists.boost.org/Archives/boost/2008/08/141007.php
[SVN r48171]
2014-06-01 21:58:50 +04:00
Joseph Gauterin
7175e02424 Updated copyright info.
[SVN r47971]
2014-06-01 21:58:50 +04:00
Joseph Gauterin
f05e7b2785 Changed 'using std::swap;' to 'using namesapce std;' in swap_impl function to work around ADL bugs in some compilers.
[SVN r47967]
2014-06-01 21:58:50 +04:00
Niels Dekker
e94718427e Removed swap_adl_barrier namespace, as discussed at "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?", http://lists.boost.org/Archives/boost/2008/07/140511.php
[SVN r47920]
2014-06-01 21:58:50 +04:00
Niels Dekker
a4ca527770 Applied "swap.hpp.patch" by Steven Watanabe, "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?", http://lists.boost.org/Archives/boost/2008/07/140482.php
[SVN r47877]
2014-06-01 21:58:50 +04:00
Joseph Gauterin
a3d73aed75 Moved utility\swap to the trunk, as discussed in trac issue #2056.
[SVN r47093]
2014-06-01 21:58:50 +04:00