diff options
Diffstat (limited to 'AssemblyItem.h')
-rw-r--r-- | AssemblyItem.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/AssemblyItem.h b/AssemblyItem.h index 9eca0a7d..3fa9bb20 100644 --- a/AssemblyItem.h +++ b/AssemblyItem.h @@ -98,11 +98,14 @@ private: }; using AssemblyItems = std::vector<AssemblyItem>; -using AssemblyItemsConstRef = vector_ref<AssemblyItem const>; std::ostream& operator<<(std::ostream& _out, AssemblyItem const& _item); -std::ostream& operator<<(std::ostream& _out, AssemblyItemsConstRef _i); -inline std::ostream& operator<<(std::ostream& _out, AssemblyItems const& _i) { return operator<<(_out, AssemblyItemsConstRef(&_i)); } +inline std::ostream& operator<<(std::ostream& _out, AssemblyItems const& _items) +{ + for (AssemblyItem const& item: _items) + _out << item; + return _out; +} } } |