diff options
-rw-r--r-- | solidityCompiler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/solidityCompiler.cpp b/solidityCompiler.cpp index 29f61454..1bdafc59 100644 --- a/solidityCompiler.cpp +++ b/solidityCompiler.cpp @@ -56,7 +56,11 @@ bytes compileContract(const string& _sourceCode) BOOST_REQUIRE_NO_THROW(resolver.resolveNamesAndTypes(*contract)); Compiler compiler; - compiler.compileContract(*contract, {}, {}); + + // clang requires explicit initialization of map + // http://stackoverflow.com/questions/17264067/chosen-constructor-is-explicit-in-copy-initialization-error-with-clang-4-2 + compiler.compileContract(*contract, {}, map<ContractDefinition const*, bytes const*>{}); + // debug //compiler.streamAssembly(cout); return compiler.getAssembledBytecode(); |