mirror of
https://github.com/boostorg/integer.git
synced 2025-06-25 03:51:33 +02:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user