Skip to content

Commit

Permalink
GH-981 Add {} to vector left-shift operator
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Nov 6, 2024
1 parent f7c76b7 commit 5e2d38f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/chain_plugin/chain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ eosio::chain::deep_mind_handler _deep_mind_log;
namespace std {
// declare operator<< for boost program options of vector<string>
std::ostream& operator<<(std::ostream& osm, const std::vector<std::string>& v) {
osm << "{";
for (size_t i = 0; i < v.size(); ++i) {
osm << v[i];
if (i < v.size() - 1) {
osm << ", ";
}
}
osm << "}";
return osm;
}
}
Expand Down

0 comments on commit 5e2d38f

Please sign in to comment.