mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Explicitly calling dev::operator<<() on two occassions due to mixup with boost
This commit is contained in:
parent
df82e26d5a
commit
e851d2173d
@ -104,9 +104,11 @@ void CommandLineInterface::handleBytecode(string const& _argName,
|
|||||||
{
|
{
|
||||||
cout << _title << endl;
|
cout << _title << endl;
|
||||||
if (_suffix == "opcodes")
|
if (_suffix == "opcodes")
|
||||||
;
|
{
|
||||||
// TODO: Figure out why after moving to own class ostream operator does not work for vector of bytes
|
// TODO: Figure out why the wrong operator << (from boost) is used here
|
||||||
// cout << m_compiler.getBytecode(_contract) << endl;
|
dev::operator<<(cout, m_compiler.getBytecode(_contract));
|
||||||
|
cout << endl;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
cout << toHex(m_compiler.getBytecode(_contract)) << endl;
|
cout << toHex(m_compiler.getBytecode(_contract)) << endl;
|
||||||
}
|
}
|
||||||
@ -115,9 +117,9 @@ void CommandLineInterface::handleBytecode(string const& _argName,
|
|||||||
{
|
{
|
||||||
ofstream outFile(_contract + _suffix);
|
ofstream outFile(_contract + _suffix);
|
||||||
if (_suffix == "opcodes")
|
if (_suffix == "opcodes")
|
||||||
;
|
// TODO: Figure out why the wrong operator << (from boost) is used here
|
||||||
// TODO: Figure out why after moving to own class ostream operator does not work for vector of bytes
|
dev::operator<<(outFile, m_compiler.getBytecode(_contract));
|
||||||
// outFile << m_compiler.getBytecode(_contract);
|
|
||||||
else
|
else
|
||||||
outFile << toHex(m_compiler.getBytecode(_contract));
|
outFile << toHex(m_compiler.getBytecode(_contract));
|
||||||
outFile.close();
|
outFile.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user