boostorg / spirit

Boost.org spirit module
http://boost.org/libs/spirit
394 stars 162 forks source link

Switch to `boost::core::invoke_swap` #766

Closed Lastique closed 1 year ago

Lastique commented 1 year ago

boost::swap is deprecated and will be removed. Use boost::core::invoke_swap as a replacement, where needed.

Removed using boost::swap in common.hpp, since this is not the intended usage of Boost.Swap, and doing so did not add anything to the existing code (which already did using std::swap).

Corrected documentation re. compatibility with boost::swap/boost::core::invoke_swap. It does not (and never did) use member swap() functions, but simply forwards to either std::swap or the user-defined free function overload (which, in turn, may forward to the member swap()).

Lastique commented 1 year ago

The errors caused by undefined std::ios_base should be fixed by #767.