Reputation: 49
I have the next code but I'm using it in an eosio smart contract so get this error:
use of overloaded operator '>>' is ambiguous (with operand types 'std::istream'
I think that the problem is because I don't use the header #include <iostream>
because I can't include this because is in conflict with the header <eosio>
.
This is a part of my code:
std::vector<Record> data;
std::istream& operator>>(std::istream& str, Record& data)
{
return str >> data.from >> data.to >> data.rate;
}
I'm looking for an alternative to std::istream to can rewrite my code in another way to can include it in the eosio smart contract.
Is there a way or another code that can use and replace this?
Upvotes: 1
Views: 117