xo-reflect: minor: move assign_tdextra() impl to .hpp
This commit is contained in:
parent
57a75e380f
commit
0454fdcbff
2 changed files with 6 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue