Add a comma before ellipsis in constexpr_swap.

gcc 15 complains that the comma is required before vararg ellipsis.

Fixes https://github.com/boostorg/integer/issues/35.
This commit is contained in:
Andrey Semashev
2024-12-02 19:22:20 +03:00
parent b774aa0d9e
commit 2dfe66886d

View File

@ -64,7 +64,7 @@ namespace boost {
return a.swap(b);
}
template <class T, class U>
inline constexpr void constexpr_swap(T& a, U& b...) BOOST_GCD_NOEXCEPT(T)
inline constexpr void constexpr_swap(T& a, U& b, ...) BOOST_GCD_NOEXCEPT(T)
{
T t(static_cast<T&&>(a));
a = static_cast<T&&>(b);