types/tagged: use concepts to restrict assignable types
This commit is contained in:
parent
ebd88b25e7
commit
28a7890681
@ -52,6 +52,7 @@ namespace cruft {
|
|||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
template <typename InitialT>
|
template <typename InitialT>
|
||||||
|
requires (cruft::concepts::same_as<std::remove_cvref_t<InitialT>, ValueT> || ...)
|
||||||
tagged (InitialT &&initial)
|
tagged (InitialT &&initial)
|
||||||
{
|
{
|
||||||
set<InitialT> (std::forward<InitialT> (initial));
|
set<InitialT> (std::forward<InitialT> (initial));
|
||||||
|
Loading…
Reference in New Issue
Block a user