mirror of
https://github.com/boostorg/integer.git
synced 2025-07-29 12:17:13 +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);
|
return a.swap(b);
|
||||||
}
|
}
|
||||||
template <class T, class U>
|
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));
|
T t(static_cast<T&&>(a));
|
||||||
a = static_cast<T&&>(b);
|
a = static_cast<T&&>(b);
|
||||||
|
Reference in New Issue
Block a user