Skip to content
Snippets Groups Projects
Commit 6779fe91 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix operator<< for conteiners

parent 85c527eb
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ int ObjectsMap::compare(const ObjectsMap& other) const { ...@@ -28,7 +28,7 @@ int ObjectsMap::compare(const ObjectsMap& other) const {
} }
   
void ObjectsMap::operator>>(std::ostream& os) const { void ObjectsMap::operator>>(std::ostream& os) const {
os << *this; os << "(ObjectsMap " << static_cast<const std::map<alib::Object, alib::Object>>(*this) << ")";
} }
   
ObjectsMap::operator std::string() const { ObjectsMap::operator std::string() const {
......
...@@ -32,7 +32,7 @@ int ObjectsPair::compare(const ObjectsPair& other) const { ...@@ -32,7 +32,7 @@ int ObjectsPair::compare(const ObjectsPair& other) const {
} }
   
void ObjectsPair::operator>>(std::ostream& os) const { void ObjectsPair::operator>>(std::ostream& os) const {
os << *this; os << "(ObjectsPair " << static_cast<const std::pair<alib::Object, alib::Object>>(*this) << ")";
} }
   
ObjectsPair::operator std::string() const { ObjectsPair::operator std::string() const {
......
...@@ -28,7 +28,7 @@ int ObjectsSet::compare(const ObjectsSet& other) const { ...@@ -28,7 +28,7 @@ int ObjectsSet::compare(const ObjectsSet& other) const {
} }
   
void ObjectsSet::operator>>(std::ostream& os) const { void ObjectsSet::operator>>(std::ostream& os) const {
os << *this; os << "(ObjectsSet " << static_cast<const std::set<alib::Object>>(*this) << ")";
} }
   
ObjectsSet::operator std::string() const { ObjectsSet::operator std::string() const {
......
...@@ -28,7 +28,7 @@ int ObjectsVector::compare(const ObjectsVector& other) const { ...@@ -28,7 +28,7 @@ int ObjectsVector::compare(const ObjectsVector& other) const {
} }
   
void ObjectsVector::operator>>(std::ostream& os) const { void ObjectsVector::operator>>(std::ostream& os) const {
os << *this; os << "(ObjectsVector " << static_cast<const std::vector<alib::Object>>(*this) << ")";
} }
   
ObjectsVector::operator std::string() const { ObjectsVector::operator std::string() const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment