Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

fix template instantiation for host function #9416

Merged
merged 7 commits into from
Aug 20, 2020

Conversation

huangminghuang
Copy link
Contributor

Change Description

Directly address the build time issue caused by the extra template instantiations for host function wrappers in multiple transaction units.

Change Type

Select ONE

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

larryk85
larryk85 previously approved these changes Aug 19, 2020
@larryk85 larryk85 dismissed their stale review August 19, 2020 22:28

The fix for the failure will need to be re-reviewed.

I have no idea why BOOST_HANA_CONFIG_ENABLE_STRING_UDL defined in instrinct_mapping.hpp doesn't work. This is the workaround I can find so far.
# Conflicts:
#	libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp
#	libraries/chain/include/eosio/chain/webassembly/interface.hpp
@huangminghuang
Copy link
Contributor Author

Can you make this std::tuple_size_v instead.

std::tuple_size_v<> only works for tuple, not for std::array for now. Library TS has it but not merged into the standard yet.

@huangminghuang huangminghuang merged commit 58a3743 into develop Aug 20, 2020
@huangminghuang huangminghuang deleted the huangminghuang/buildtime-fix branch August 24, 2020 15:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants