mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
remove std::map serialization
This commit is contained in:
parent
40ca35085a
commit
41e64ed7e1
@ -284,20 +284,5 @@ public:
|
|||||||
template <>
|
template <>
|
||||||
void PropertyMap::set<boost::any>(const std::string& name, const boost::any& value);
|
void PropertyMap::set<boost::any>(const std::string& name, const boost::any& value);
|
||||||
|
|
||||||
// provide a serialization method for std::map
|
|
||||||
template <typename T>
|
|
||||||
std::ostream& operator<<(std::ostream& os, const std::map<std::string, T>& m) {
|
|
||||||
os << "{";
|
|
||||||
bool first = true;
|
|
||||||
for (const auto& pair : m) {
|
|
||||||
if (!first)
|
|
||||||
os << ", ";
|
|
||||||
os << pair.first << " : " << pair.second;
|
|
||||||
first = false;
|
|
||||||
}
|
|
||||||
os << "}";
|
|
||||||
return os;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace task_constructor
|
} // namespace task_constructor
|
||||||
} // namespace moveit
|
} // namespace moveit
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user