xo-expression xo-reader: type unifier + misc improvements
This commit is contained in:
parent
5dce303fe1
commit
0f89542e11
1 changed files with 11 additions and 1 deletions
|
|
@ -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 {};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue