xo-expression xo-reader: type unifier + misc improvements
This commit is contained in:
parent
6a7353f689
commit
75b74918b7
31 changed files with 1005 additions and 76 deletions
|
|
@ -518,11 +518,21 @@ namespace xo {
|
|||
}; /*TypeDescrBase*/
|
||||
|
||||
inline std::ostream &
|
||||
operator<<(std::ostream & os, TypeDescrBase const & x) {
|
||||
operator<<(std::ostream & os, const TypeDescrBase & x) {
|
||||
x.display(os);
|
||||
return os;
|
||||
} /*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 */
|
||||
struct reflected_types_printer {};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue