You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wondered if there is an easy way to merge a number of frozen::sets into one and purge it of duplicate entries? I managed to do something like that with std::arrays, merging them with this https://wandbox.org/permlink/arkvF7HpZGr4LKOa hack, but it needs some additional ctors in bits::carray and further trickery (it seems the result of std::unique is not a constant expression).
Surely I can't be the only one who wants to create a static string pool like that?
The text was updated successfully, but these errors were encountered:
Yeah, the issue is « how do I make the elements in the sequence unique, and reflect that in the type ». I've been giving it a try but fails, so I'd say there's no easy way, but I'll happily take any way to merge two std::array with unique elements into an std::array of unique elements
I wondered if there is an easy way to merge a number of
frozen::set
s into one and purge it of duplicate entries? I managed to do something like that withstd::arrays
, merging them with this https://wandbox.org/permlink/arkvF7HpZGr4LKOa hack, but it needs some additional ctors inbits::carray
and further trickery (it seems the result ofstd::unique
is not a constant expression).Surely I can't be the only one who wants to create a static string pool like that?
The text was updated successfully, but these errors were encountered: