0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:Ⓜ️ Add selecting-key ctor for event from json::object.

This commit is contained in:
Jason Volk 2019-01-16 15:17:04 -08:00
parent 4dc1e2d7fc
commit fc703660f6
2 changed files with 11 additions and 8 deletions

View file

@ -113,9 +113,7 @@ struct ircd::m::event
using super_type::tuple;
event(const json::object &);
event(const json::object &, const keys &);
event() = default;
using super_type::operator=;
event &operator=(const json::object &);
};
#pragma GCC diagnostic pop

View file

@ -447,12 +447,17 @@ ircd::m::event::event(const json::object &source)
{
}
ircd::m::event &
ircd::m::event::operator=(const json::object &source)
ircd::m::event::event(const json::object &source,
const keys &keys)
:super_type
{
source, keys
}
,source
{
source
}
{
this->super_type::operator=(source);
this->source = source;
return *this;
}
namespace ircd::m