0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd:Ⓜ️:dbs: Improve static bitset initializer.

This commit is contained in:
Jason Volk 2019-05-07 13:40:23 -07:00
parent 88bfc74e51
commit 4bfa7ae5e6

View file

@ -173,11 +173,14 @@ noexcept
//
decltype(ircd::m::dbs::write_opts::event_refs_all)
ircd::m::dbs::write_opts::event_refs_all
{[]{
char full[256];
ircd::m::dbs::write_opts::event_refs_all{[]
{
char full[event_refs_all.size()];
memset(full, '1', sizeof(full));
return std::bitset<256>(full, sizeof(full));
return decltype(event_refs_all)
{
full, sizeof(full)
};
}()};
//