mirror of
https://github.com/matrix-construct/construct
synced 2024-09-28 03:38:53 +02:00
ircd::ctx: Add missing shared_state already_t w/ value ctor.
This commit is contained in:
parent
7bac03372d
commit
2eb4b84019
1 changed files with 16 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
{}
|
||||
|
|
Loading…
Reference in a new issue