I'm watching for an alternative to "std::ifstream" because "#include " can't include as header in a contract.
My code is:
std::istream& operator>>(std::istream& str, Record& data)
{
return str >> data.from >> data.to >> data.rate;
}
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.
Sign up to join this communityYou should use the basic CPP string concatenation syntax. Smart contracts should not be bloated. istream is a heavyweight which handles locales and other considerations that are irrelevant to this use case.