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

better nested container support in abigen #231

Open
taokayan opened this issue Nov 6, 2018 · 1 comment
Open

better nested container support in abigen #231

taokayan opened this issue Nov 6, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@taokayan
Copy link

taokayan commented Nov 6, 2018

as https://github.com/lonkly mentioned in #187

optional <vector < string > > does not work as well

I think the better way is to make a matrix to describe, test & fix each combination of nested containers:
for example:
list of supported containers:
vector, set, optional, map, pair, tuple:

list of possible nested combinations and their current status:

vector/set optional map pair tuple
vector/set not supported not supported not supported not supported not supported
optional not supported not supported not supported not supported not supported
map supported supported supported supported supported
pair supported supported supported supported supported
tuple supported supported supported supported supported

We will need to add more supports in the future

@bogniq
Copy link
Collaborator

bogniq commented Apr 29, 2021

Is the above list of nested combinations up to date? It says map-nested-in-map is supported, but I tested using the current develop branch (see attachment) for #1042, and the ABI misses the definition of a map with another map as value.
(One workaround is to use typedef or using for the nested map, as suggested by #658 (comment).)
map_nest.cpp.txt
map_nest.abi.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants