mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd:Ⓜ️:dbs: Improve static bitset initializer.
This commit is contained in:
parent
88bfc74e51
commit
4bfa7ae5e6
1 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
};
|
||||
}()};
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue