forked from boostorg/integer
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:
1 parent
b774aa0d9e
commit
2dfe66886d
1 file changed
+1
-1
@@ -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