0
0
Fork 0
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:
Jason Volk 2018-05-13 18:43:51 -07:00
parent 471c3af367
commit ced6ef96f6

View file

@ -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;