mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge 12eda278ac into merged_master (Bitcoin PR bitcoin/bitcoin#23288)
Added implementation of << for CAmountMap to fix compilation error
This commit is contained in:
commit
45c6a83737
12 changed files with 307 additions and 265 deletions
|
|
@ -155,3 +155,11 @@ CAmount valueFor(const CAmountMap& mapValue, const CAsset& asset) {
|
|||
return CAmount(0);
|
||||
}
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const CAmountMap& map)
|
||||
{
|
||||
for(std::map<CAsset, CAmount>::const_iterator it = map.begin(); it != map.end(); ++it) {
|
||||
out << it->first.GetHex() << ": " << it->second << ", ";
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue