0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-19 18:38:21 +02:00

ircd::ctx: Add missing shared_state already_t w/ value ctor.

This commit is contained in:
Jason Volk 2020-10-14 23:28:55 -07:00
parent 7bac03372d
commit 2eb4b84019

View file

@ -101,6 +101,7 @@ struct ircd::ctx::shared_state
T val;
template<class U> shared_state(already_t, U&&);
using shared_state_base::shared_state_base;
using shared_state_base::operator=;
};
@ -116,3 +117,18 @@ struct ircd::ctx::shared_state<void>
using shared_state_base::shared_state_base;
using shared_state_base::operator=;
};
template<class T>
template<class U>
inline
ircd::ctx::shared_state<T>::shared_state(already_t,
U&& val)
:shared_state_base
{
already
}
,val
{
std::forward<U>(val)
}
{}