Merge branch 'main' of github.com:Rconybea/reflect

This commit is contained in:
Roland Conybeare 2024-06-25 18:59:15 -04:00
commit ec2591f907
3 changed files with 7 additions and 1 deletions

View file

@ -13,6 +13,7 @@ Installs a few cmake ingredients, along with a build assistant `xo-build` for X
$ xo-build --clone --configure --build --install xo-indentlog
$ xo-build --clone --configure --build --install xo-refnct
$ xo-build --clone --configure --build --install xo-subsys
$ xo-build --clone --configure --build --install xo-reflectutil
```
Note: can use `-n` to dry-run here

View file

@ -352,7 +352,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>();