Skip to content

fix the owning issues of infostate tree#1514

Open
maichmueller wants to merge 1 commit intogoogle-deepmind:masterfrom
maichmueller:fix_infostatetree_bindings
Open

fix the owning issues of infostate tree#1514
maichmueller wants to merge 1 commit intogoogle-deepmind:masterfrom
maichmueller:fix_infostatetree_bindings

Conversation

@maichmueller
Copy link
Copy Markdown
Contributor

The aliasing shared ptr for infostate node types was a clever idea, but pybind11 considers every shared ptrs to own a copyable type apparently. This prevents holding an infostate node in a shared ptr, since it contains unique ptr members.

No clue why this did not come up in ci tests or in my local setup prior. I was using apple-clang 17 and the repo's installed pybind11 and could not reproduce the error.
Anyway, this fix should avoid the holder issue #1502

the aliasing shared ptr was a clever idea but pybind11 considers shared ptrs to be copyable in terms of its content apparently. This prevents holding an infostate node in a shared ptr, since it contains unique ptr members.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant