boostorg / spirit

Boost.org spirit module
http://boost.org/libs/spirit
391 stars 161 forks source link

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

Closed Lastique closed 12 months 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.