xo-expression xo-reader: type unifier + misc improvements

This commit is contained in:
Roland Conybeare 2025-07-26 17:28:41 -04:00
commit 0f89542e11

View file

@ -518,11 +518,21 @@ namespace xo {
}; /*TypeDescrBase*/ }; /*TypeDescrBase*/
inline std::ostream & inline std::ostream &
operator<<(std::ostream & os, TypeDescrBase const & x) { operator<<(std::ostream & os, const TypeDescrBase & x) {
x.display(os); x.display(os);
return os; return os;
} /*operator<<*/ } /*operator<<*/
inline std::ostream &
operator<<(std::ostream & os, const TypeDescrBase * p) {
if (p)
p->display(os);
else
os << "<nullptr>";
return os;
}
/* tag to drive overload resolution */ /* tag to drive overload resolution */
struct reflected_types_printer {}; struct reflected_types_printer {};