Skip to content

Work-Around: pybind11 type aliases on Win #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Mar 20, 2023

`amrex::DefaultAllocator` is not properly resolved as the
same type on Windows in pybind11.
@ax3l ax3l force-pushed the fix-allocator-aliases-windows branch 2 times, most recently from 9a5bd21 to 3784304 Compare March 22, 2023 07:21
Comment on lines +131 to +133
// work-around for https://github.com/pybind/pybind11/pull/4581
//make_ArrayOfStructs<NReal, NInt, std::allocator> (m, "std");
//make_ArrayOfStructs<NReal, NInt, amrex::ArenaAllocator> (m, "arena");

Check notice

Code scanning / CodeQL

Commented-out code

This comment appears to contain commented-out code.
Comment on lines +53 to +55
// work-around for https://github.com/pybind/pybind11/pull/4581
//make_StructOfArrays<NReal, NInt, std::allocator>(m, "std");
//make_StructOfArrays<NReal, NInt, amrex::ArenaAllocator>(m, "arena");

Check notice

Code scanning / CodeQL

Commented-out code

This comment appears to contain commented-out code.
@ax3l ax3l force-pushed the fix-allocator-aliases-windows branch from 3784304 to 12d8b3d Compare March 22, 2023 15:28
... and skip what it stands for.
@ax3l ax3l force-pushed the fix-allocator-aliases-windows branch from 12d8b3d to 023ea80 Compare March 22, 2023 16:25
@ax3l ax3l merged commit 786e1b2 into AMReX-Codes:development Mar 22, 2023
@ax3l ax3l deleted the fix-allocator-aliases-windows branch March 22, 2023 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant