mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
clang requires explicit initialization of map
This commit is contained in:
parent
c83db9e6db
commit
36532d9ab4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user