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,