Skip to content

Commit

Permalink
Typecheck Expr - Refactor of ivar possibilities to simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Feb 24, 2019
1 parent 054faa3 commit ebe84a8
Show file tree
Hide file tree
Showing 3 changed files with 444 additions and 656 deletions.
5 changes: 5 additions & 0 deletions src/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ inline Join<T> join(const char *sep, const ::std::vector<T> v) {

namespace std {

template <typename T>
inline auto operator<<(::std::ostream& os, const T& v) -> decltype(v.fmt(os)) {
return v.fmt(os);
}

template <typename T>
inline ::std::ostream& operator<<(::std::ostream& os, const ::std::vector<T*>& v) {
if( v.size() > 0 )
Expand Down
Loading

0 comments on commit ebe84a8

Please sign in to comment.