diff options
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.hpp b/src/common.hpp index f46f93fd..7521b2de 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -244,6 +244,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 ) { |