xo-reflect: minor: move assign_tdextra() impl to .hpp

This commit is contained in:
Roland Conybeare 2024-06-25 00:26:05 -04:00
commit 0454fdcbff
2 changed files with 6 additions and 1 deletions

View file

@ -351,7 +351,10 @@ namespace xo {
/* call this once to attach extended type information to a type-description
* (e.g. description of struct members for a record type)
*/
void assign_tdextra(std::unique_ptr<TypeDescrExtra> tdx);
void assign_tdextra(std::unique_ptr<TypeDescrExtra> tdx) {
this->complete_flag_ = true;
this->tdextra_ = std::move(tdx);
}
private:
TypeDescrBase(TypeId id,

View file

@ -288,6 +288,7 @@ namespace xo {
return retval;
} /*mark_complete*/
#ifdef NOT_USING
void
TypeDescrBase::assign_tdextra(std::unique_ptr<TypeDescrExtra> tdx)
{
@ -302,6 +303,7 @@ namespace xo {
this->complete_flag_ = true;
this->tdextra_ = std::move(tdx);
} /*assign_tdextra*/
#endif
TypeDescrTable::TypeDescrTable() {
Reflect::require<bool>();