From e851d2173daea4f464d5f72910bb2934c0596a65 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Tue, 9 Dec 2014 18:17:54 +0100 Subject: [PATCH] Explicitly calling dev::operator<<() on two occassions due to mixup with boost --- CommandLineInterface.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index 332dc771d..aef5512e3 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -104,9 +104,11 @@ void CommandLineInterface::handleBytecode(string const& _argName, { cout << _title << endl; if (_suffix == "opcodes") - ; - // TODO: Figure out why after moving to own class ostream operator does not work for vector of bytes - // cout << m_compiler.getBytecode(_contract) << endl; + { + // TODO: Figure out why the wrong operator << (from boost) is used here + dev::operator<<(cout, m_compiler.getBytecode(_contract)); + cout << endl; + } else cout << toHex(m_compiler.getBytecode(_contract)) << endl; } @@ -115,9 +117,9 @@ void CommandLineInterface::handleBytecode(string const& _argName, { ofstream outFile(_contract + _suffix); if (_suffix == "opcodes") - ; - // TODO: Figure out why after moving to own class ostream operator does not work for vector of bytes - // outFile << m_compiler.getBytecode(_contract); + // TODO: Figure out why the wrong operator << (from boost) is used here + dev::operator<<(outFile, m_compiler.getBytecode(_contract)); + else outFile << toHex(m_compiler.getBytecode(_contract)); outFile.close();