mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 16:33:53 +01:00
ircd:Ⓜ️🆔 Fix id::buf construction semantics.
This commit is contained in:
parent
471c3af367
commit
ced6ef96f6
1 changed files with 4 additions and 2 deletions
|
@ -251,9 +251,11 @@ struct ircd::m::id::buf
|
|||
return *this;
|
||||
}
|
||||
|
||||
// Universal reference with perfect forwarding will be too greedy here by
|
||||
// overriding some of the other semantics. const reference pack is fine.
|
||||
template<class... args>
|
||||
buf(args&&... a)
|
||||
:T{b, std::forward<args>(a)...}
|
||||
buf(const args &...a)
|
||||
:T{b, a...}
|
||||
{}
|
||||
|
||||
buf() = default;
|
||||
|
|
Loading…
Reference in a new issue