-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
testing smart_holder as default #2872
Commits on Feb 23, 2021
-
Adding test_unique_ptr_member (for desired PyCLIF behavior).
See also: pybind#2583 Does not build with upstream master or pybind#2047, but builds with https://github.com/RobotLocomotion/pybind11 and almost runs: ``` Running tests in directory "/usr/local/google/home/rwgk/forked/EricCousineau-TRI/pybind11/tests": ================================================================================= test session starts ================================================================================= platform linux -- Python 3.8.5, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 rootdir: /usr/local/google/home/rwgk/forked/EricCousineau-TRI/pybind11/tests, inifile: pytest.ini collected 2 items test_unique_ptr_member.py .F [100%] ====================================================================================== FAILURES ======================================================================================= _____________________________________________________________________________ test_pointee_and_ptr_owner ______________________________________________________________________________ def test_pointee_and_ptr_owner(): obj = m.pointee() assert obj.get_int() == 213 m.ptr_owner(obj) with pytest.raises(ValueError) as exc_info: > obj.get_int() E Failed: DID NOT RAISE <class 'ValueError'> test_unique_ptr_member.py:17: Failed ============================================================================= 1 failed, 1 passed in 0.06s ============================================================================= ```
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for dcc440b - Browse repository at this point
Copy the full SHA dcc440bView commit details -
unique_ptr or shared_ptr return
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for e96a186 - Browse repository at this point
Copy the full SHA e96a186View commit details -
new test_variant_unique_shared with vptr_holder prototype
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for cd1f610 - Browse repository at this point
Copy the full SHA cd1f610View commit details -
moving prototype code to pybind11/vptr_holder.h, adding type_caster s…
…pecialization to make the bindings involving unique_ptr passing compile, but load and cast implementations are missing
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 9447b50 - Browse repository at this point
Copy the full SHA 9447b50View commit details -
disabling GitHub Actions on pull_request (for this PR)
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c518aac - Browse repository at this point
Copy the full SHA c518aacView commit details -
disabling AppVeyor (for this PR)
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 0f78357 - Browse repository at this point
Copy the full SHA 0f78357View commit details -
TRIGGER_SEGSEV macro, annotations for GET_STACK (vptr::get), GET_INT_…
…STACK (pointee)
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b0806e7 - Browse repository at this point
Copy the full SHA b0806e7View commit details -
adding test_promotion_of_disowned_to_shared
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for e82720e - Browse repository at this point
Copy the full SHA e82720eView commit details -
Copying tests as-is from xxx_value_ptr_xxx_holder branch.
https://github.com/rwgk/pybind11/tree/xxx_value_ptr_xxx_holder Systematically exercising returning and passing unique_ptr<T>, shared_ptr<T> with unique_ptr, shared_ptr holder. Observations: test_holder_unique_ptr: make_unique_pointee OK pass_unique_pointee BUILD_FAIL (as documented) make_shared_pointee Abort free(): double free detected pass_shared_pointee RuntimeError: Unable to load a custom holder type from a default-holder instance test_holder_shared_ptr: make_unique_pointee Segmentation fault (pybind#1138) pass_unique_pointee BUILD_FAIL (as documented) make_shared_pointee OK pass_shared_pointee OK
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for e839ffb - Browse repository at this point
Copy the full SHA e839ffbView commit details -
Copying tests as-is from xxx_value_ptr_xxx_holder branch.
https://github.com/rwgk/pybind11/tree/xxx_value_ptr_xxx_holder Systematically exercising casting between shared_ptr<base>, shared_ptr<derived>.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 971d611 - Browse repository at this point
Copy the full SHA 971d611View commit details -
Demonstration of Undefined Behavior in handling of shared_ptr holder.
Based on https://godbolt.org/z/4fdjaW by jorgbrown@ (thanks Jorg!).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 46a15af - Browse repository at this point
Copy the full SHA 46a15afView commit details -
Additional demonstration of Undefined Behavior in handling of shared_…
…ptr holder.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 204e713 - Browse repository at this point
Copy the full SHA 204e713View commit details -
fixing up-down mixup in comment
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 47e46c4 - Browse repository at this point
Copy the full SHA 47e46c4View commit details -
Demonstration of Undefined Behavior in handling of polymorphic pointers.
(This demo does NOT involve smart pointers at all, unlike the otherwise similar test_smart_ptr_private_first_base.)
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for aa98993 - Browse repository at this point
Copy the full SHA aa98993View commit details -
minor test_private_first_base.cpp simplification (after discovering t…
…hat this can be wrapped with Boost.Python, using boost::noncopyable)
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for cd645e4 - Browse repository at this point
Copy the full SHA cd645e4View commit details -
pybind11 equivalent of Boost.Python test similar to reproducer under p…
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for d4a9613 - Browse repository at this point
Copy the full SHA d4a9613View commit details -
Snapshot of WIP, TODO: shared_ptr deleter with on/off switch
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 0ef2c55 - Browse repository at this point
Copy the full SHA 0ef2c55View commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c5e112c - Browse repository at this point
Copy the full SHA c5e112cView commit details -
Adding from/as unique_ptr<T> and unique_ptr<T, D>.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 3c0c2e9 - Browse repository at this point
Copy the full SHA 3c0c2e9View commit details -
Adding from_shared_ptr. Some polishing.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 06151c7 - Browse repository at this point
Copy the full SHA 06151c7View commit details -
New tests/core/smart_holder_poc_test.cpp, using Catch2.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6830a31 - Browse repository at this point
Copy the full SHA 6830a31View commit details -
Adding in vptr_deleter_guard_flag.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for e20abab - Browse repository at this point
Copy the full SHA e20ababView commit details -
Improved labeling of TEST_CASEs.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for fea0ebf - Browse repository at this point
Copy the full SHA fea0ebfView commit details -
Shuffling existing TEST_CASEs into systematic matrix.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b9428a8 - Browse repository at this point
Copy the full SHA b9428a8View commit details -
Implementing all [S]uccess tests.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for a4e0351 - Browse repository at this point
Copy the full SHA a4e0351View commit details -
Implementing all [E]xception tests.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 673ef13 - Browse repository at this point
Copy the full SHA 673ef13View commit details -
Testing of exceptions not covered by the from-as matrix.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 149738a - Browse repository at this point
Copy the full SHA 149738aView commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for d5bb169 - Browse repository at this point
Copy the full SHA d5bb169View commit details -
Converting from methods to factory functions (no functional change).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b667d32 - Browse repository at this point
Copy the full SHA b667d32View commit details -
Removing obsolete and very incomplete test (replaced by Catch2-based …
…test).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 739aead - Browse repository at this point
Copy the full SHA 739aeadView commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for a76d5eb - Browse repository at this point
Copy the full SHA a76d5ebView commit details -
Adding type_caster_bare_interface_demo.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 179466e - Browse repository at this point
Copy the full SHA 179466eView commit details -
Adding shared_ptr<mpty>, shared_ptr<mpty const> casters.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 1c9b8eb - Browse repository at this point
Copy the full SHA 1c9b8ebView commit details -
Adding unique_ptr<mpty>, unique_ptr<mpty const> casters.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c599d3c - Browse repository at this point
Copy the full SHA c599d3cView commit details -
Pure copy of
class class_
implementation in pybind11.h (master commit98f1bbb).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c225f40 - Browse repository at this point
Copy the full SHA c225f40View commit details -
classh.h: renaming of class_ to classh + namespace; forking test_clas…
…sh_wip from test_type_caster_bare_interface_demo.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 1bedec6 - Browse repository at this point
Copy the full SHA 1bedec6View commit details -
Hard-coding smart_holder into classh.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 1c5c52f - Browse repository at this point
Copy the full SHA 1c5c52fView commit details -
Adding mpty::mtxt string member.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 83ef538 - Browse repository at this point
Copy the full SHA 83ef538View commit details -
Adding isinstance<mpty> in type_caster::load functions.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6cb94e4 - Browse repository at this point
Copy the full SHA 6cb94e4View commit details -
Adding rvalue_ref, renaming const_value_ref to lvalue_ref & removing …
…const.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 8ed0206 - Browse repository at this point
Copy the full SHA 8ed0206View commit details -
Retrieving smart_holder pointer in type_caster<mpty>::load, and using…
… it cast_op operators.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for e90f6b0 - Browse repository at this point
Copy the full SHA e90f6b0View commit details -
Factoring out smart_holder_type_caster_load.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for f98322c - Browse repository at this point
Copy the full SHA f98322cView commit details -
Retrieving smart_holder pointer in type_caster<std::shared_ptr<mpty[ …
…const]>>::load, and using it cast_op operators.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for f91e754 - Browse repository at this point
Copy the full SHA f91e754View commit details -
Improved error messaging: Cannot disown nullptr (as_unique_ptr).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for efb5cf2 - Browse repository at this point
Copy the full SHA efb5cf2View commit details -
Retrieving smart_holder pointer in type_caster<std::unique_ptr<mpty[ …
…const]>>::load, and using it cast_op operators.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 4ba4faa - Browse repository at this point
Copy the full SHA 4ba4faaView commit details -
Pure
clang-format --style=file -i
change.Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 4aedb51 - Browse repository at this point
Copy the full SHA 4aedb51View commit details -
Pure
clang-format --style=file -i
change, with two `clang-format of……f` directives.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b64294f - Browse repository at this point
Copy the full SHA b64294fView commit details -
Fixing oversight (discovered by flake8).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for f04515b - Browse repository at this point
Copy the full SHA f04515bView commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for e24cf09 - Browse repository at this point
Copy the full SHA e24cf09View commit details -
Systematically setting mtxt for all rtrn_mpty_* functions (preparatio…
…n, the values are not actually used yet).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b8226c0 - Browse repository at this point
Copy the full SHA b8226c0View commit details -
static cast handle for rtrn_cptr works by simply dropping in code fro…
…m type_caster_base (marked with comments).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 14b585c - Browse repository at this point
Copy the full SHA 14b585cView commit details -
static cast handle for rtrn_cref works by simply dropping in code fro…
…m type_caster_base (marked with comments). rtrn_mref and rtrn_mptr work via const_cast (to add const).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c2137a9 - Browse repository at this point
Copy the full SHA c2137a9View commit details -
static cast handle for rtrn_valu works by simply dropping in code fro…
…m type_caster_base (marked with comments). rtrn_rref raises a RuntimeError, to be investigated.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 1a4b6c0 - Browse repository at this point
Copy the full SHA 1a4b6c0View commit details -
Copying type_caster_generic::cast into type_caster<mpty> as-is (prepa…
…ration for handling smart pointers).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 0f3a21f - Browse repository at this point
Copy the full SHA 0f3a21fView commit details -
Pure clang-format change (applied to original type_caster_generic::ca…
…st).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for d4029ec - Browse repository at this point
Copy the full SHA d4029ecView commit details -
Adding comment re potential use_count data race.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 012c160 - Browse repository at this point
Copy the full SHA 012c160View commit details -
static handle cast implementations for rtrn_shmp, rtrn_shcp.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 8bc1548 - Browse repository at this point
Copy the full SHA 8bc1548View commit details -
Adding MISSING comments in operator std::unique_ptr<mpty[ const]>.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 233709c - Browse repository at this point
Copy the full SHA 233709cView commit details -
static handle cast implementations for rtrn_uqmp, rtrn_uqcp.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 19eec17 - Browse repository at this point
Copy the full SHA 19eec17View commit details -
Bug fix: vptr_deleter_armed_flag_ptr has to live on the heap.
See new bullet point in comment section near the top. The variable was also renamed to reflect its function more accurately.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6c3c590 - Browse repository at this point
Copy the full SHA 6c3c590View commit details -
Fixing bugs discovered by ASAN. The code is now ASAN, MSAN, UBSAN clean.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 19dc356 - Browse repository at this point
Copy the full SHA 19dc356View commit details -
Making test_type_caster_bare_interface_demo.cpp slightly more realist…
…ic, ASAN, MSAN, UBSAN clean.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 2b12cc9 - Browse repository at this point
Copy the full SHA 2b12cc9View commit details -
Calling deregister_instance after disowning via unique_ptr.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 9e03cc7 - Browse repository at this point
Copy the full SHA 9e03cc7View commit details -
Removing enable_shared_from_this stub, simplifying existing code, cla…
…ng-format. Open question, with respect to the original code: https://github.com/pybind/pybind11/blob/76a160070b369f8d82b945c97924227e8b835c94/include/pybind11/pybind11.h#L1510 To me it looks like the exact situation marked as `std::shared_ptr<Good> gp1 = not_so_good.getptr();` here: https://en.cppreference.com/w/cpp/memory/enable_shared_from_this The comment there is: `// undefined behavior (until C++17) and std::bad_weak_ptr thrown (since C++17)` Does the existing code have UB pre C++17? I'll leave handling of enable_shared_from_this for later, as the need arises.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 5223e91 - Browse repository at this point
Copy the full SHA 5223e91View commit details -
Cosmetical change around helper functions.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 7fd3d51 - Browse repository at this point
Copy the full SHA 7fd3d51View commit details -
Using type_caster_base<mpty>::src_and_type directly, removing copy. A…
…lso renaming one cast to cast_const_raw_ptr, for clarity.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for dc0f63e - Browse repository at this point
Copy the full SHA dc0f63eView commit details -
Fixing clang-format oversight.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for cef065f - Browse repository at this point
Copy the full SHA cef065fView commit details -
Using factored-out make_constructor (PR pybind#2798), removing duplic…
…ate code.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for fd11b71 - Browse repository at this point
Copy the full SHA fd11b71View commit details -
Inserting additional assert to ensure a returned unique_ptr is always…
… a new Python instance.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 47b0352 - Browse repository at this point
Copy the full SHA 47b0352View commit details -
Adding minor comment (change to internals needed to distinguish unini…
…tialized/disowned in error message).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for d189fa3 - Browse repository at this point
Copy the full SHA d189fa3View commit details -
Factoring out find_existing_python_instance().
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 5cbc400 - Browse repository at this point
Copy the full SHA 5cbc400View commit details -
Moving factored-out make_constructor to test_classh_wip.cpp, restorin…
…g previous version of cast.h. This is currently the most practical approach. See PR pybind#2798 for background.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 0d6bceb - Browse repository at this point
Copy the full SHA 0d6bcebView commit details -
Copying classh type_casters from test_classh_wip.cpp UNMODIFIED, as a…
… baseline for generalizing the code.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for bd0c8fa - Browse repository at this point
Copy the full SHA bd0c8faView commit details -
Using pybind11/detail/classh_type_casters.h from test_classh_wip.cpp.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6dae732 - Browse repository at this point
Copy the full SHA 6dae732View commit details -
Adding & using PYBIND11_CLASSH_TYPE_CASTERS define.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for a2400b4 - Browse repository at this point
Copy the full SHA a2400b4View commit details -
Adding test_classh_inheritance, currently failing (passes with class_).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for a7b0745 - Browse repository at this point
Copy the full SHA a7b0745View commit details -
Removing .clang-format before git rebase master (where the file was a…
…dded).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 689e253 - Browse repository at this point
Copy the full SHA 689e253View commit details -
Bringing back .clang-format, the previous rm was a bad idea.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c87145c - Browse repository at this point
Copy the full SHA c87145cView commit details -
Folding in modified_type_caster_generic_load_impl, just enough to pas…
…s test_class_wip. test_classh_inheritance is still failing, but with a different error: [RuntimeError: Incompatible type (as_raw_ptr_unowned).]
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for cc50eaa - Browse repository at this point
Copy the full SHA cc50eaaView commit details -
Minimal changes needed to pass test_classh_inheritance.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for acb2c33 - Browse repository at this point
Copy the full SHA acb2c33View commit details -
First pass adjusting try_implicit_casts and try_load_foreign_module_l…
…ocal to capture loaded_v_h, but untested and guarded with pybind11_failure("Untested"). This was done mainly to determine general feasibility. Note the TODO in pybind11.h, where type_caster_generic::local_load is currently hard-coded. test_classh_wip and test_classh_inheritance still pass, as before.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for a11dfba - Browse repository at this point
Copy the full SHA a11dfbaView commit details -
Decoupling generic_type from type_caster_generic.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for d0c351b - Browse repository at this point
Copy the full SHA d0c351bView commit details -
Changes and tests covering classh_type_casters try_implicit_casts.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for ed01fae - Browse repository at this point
Copy the full SHA ed01faeView commit details -
Minimal test covering classh_type_casters load_impl Case 2b.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for d3ef4a9 - Browse repository at this point
Copy the full SHA d3ef4a9View commit details -
Removing stray isinstance<T>(src): it interferes with the py::module_…
…local feature. Adding missing #includes.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 299bba4 - Browse repository at this point
Copy the full SHA 299bba4View commit details -
Tests for classh py::module_local() feature.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for ce626e0 - Browse repository at this point
Copy the full SHA ce626e0View commit details -
Pure renaming of function names in test_classh_inheritance, similar t…
…o the systematic approach used in test_class_wip. NO functional changes.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for f646967 - Browse repository at this point
Copy the full SHA f646967View commit details -
Pure renaming of function and variable names, for better generalizati…
…on when convoluting with inheritance. NO functional changes.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 678ecb9 - Browse repository at this point
Copy the full SHA 678ecb9View commit details -
Adopting systematic naming scheme from test_classh_wip. NO functional…
… changes.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6e825d3 - Browse repository at this point
Copy the full SHA 6e825d3View commit details -
Moving const after type name, for functions that cover a systematic s…
…cheme. NO functional changes.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 4bd7394 - Browse repository at this point
Copy the full SHA 4bd7394View commit details -
Adding smart_holder_type_caster_load::loaded_as_shared_ptr, currently…
… bypassing smart_holder shared_ptr tracking completely, but the tests pass and are sanitizer clean.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 45dfd26 - Browse repository at this point
Copy the full SHA 45dfd26View commit details -
Removing rtti_held from smart_holder. See updated comment.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 49bf91f - Browse repository at this point
Copy the full SHA 49bf91fView commit details -
Cleaning up loaded_as_raw_ptr_unowned, loaded_as_shared_ptr.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for f7ce730 - Browse repository at this point
Copy the full SHA f7ce730View commit details -
Factoring out convert_type and folding into loaded_as_unique_ptr.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 877218b - Browse repository at this point
Copy the full SHA 877218bView commit details -
Folding convert_type into lvalue_ref and rvalue_ref paths. Some smart…
…_holder_type_caster_load cleanup.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for be411c8 - Browse repository at this point
Copy the full SHA be411c8View commit details -
Using unique_ptr in local_load to replace static variable. Also addin…
…g local_load_safety_guard.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 73cb257 - Browse repository at this point
Copy the full SHA 73cb257View commit details -
Converting test_unique_ptr_member to using classh: fully working, ASA…
…N, MSAN, UBSAN clean.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 149be46 - Browse repository at this point
Copy the full SHA 149be46View commit details -
Removing debugging comments (GET_STACK, GET_INT_STACK). cast.h is ide…
…ntical to current master again, pybind11.h only has the generic_type::initialize(..., &type_caster_generic::local_load) change.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 60dc8f3 - Browse repository at this point
Copy the full SHA 60dc8f3View commit details -
Purging obsolete pybind11/vptr_holder.h and associated test.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b93c240 - Browse repository at this point
Copy the full SHA b93c240View commit details -
Moving several tests to github.com/rwgk/rwgk_tbx/tree/main/pybind11_t…
…ests rwgk/rwgk_tbx@a2c2f88 These tests are from experimenting, and for demonstrating UB in pybind11 multiple inheritance handling ("first_base"), to be fixed later.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for a0cf20c - Browse repository at this point
Copy the full SHA a0cf20cView commit details -
Adding py::smart_holder support to py::class_, purging py::classh com…
…pletely.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 8e5ca01 - Browse repository at this point
Copy the full SHA 8e5ca01View commit details -
Renaming files in include directory, creating pybind11/smart_holder.h.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 173032c - Browse repository at this point
Copy the full SHA 173032cView commit details -
Renaming all "classh" to "smart_holder" in pybind11/detail/smart_hold…
…er_type_casters.h. The user-facing macro is now PYBIND11_SMART_HOLDER_TYPE_CASTERS.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6e460b8 - Browse repository at this point
Copy the full SHA 6e460b8View commit details -
Systematically renaming tests to use "class_sh" in the name.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b71f6ff - Browse repository at this point
Copy the full SHA b71f6ffView commit details -
Renaming test_type_caster_bare_interface_demo to test_type_caster_bar…
…e_interface.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 1613268 - Browse repository at this point
Copy the full SHA 1613268View commit details -
Renaming new tests/core subdirectory to tests/pure_cpp.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 9ef2cce - Browse repository at this point
Copy the full SHA 9ef2cceView commit details -
Adding new tests to CMake config, resetting CI config.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6ab0a02 - Browse repository at this point
Copy the full SHA 6ab0a02View commit details -
Changing CMake file so that test_class_sh_module_local.py actually runs.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 8b04ea0 - Browse repository at this point
Copy the full SHA 8b04ea0View commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for e67d5a5 - Browse repository at this point
Copy the full SHA e67d5a5View commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 02c4e24 - Browse repository at this point
Copy the full SHA 02c4e24View commit details -
Reusing type_caster_base make_copy_constructor, make_move_constructor…
… with a trick.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 76a090e - Browse repository at this point
Copy the full SHA 76a090eView commit details -
CMake COMPARE NATURAL is not available with older versions.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b1ef8b6 - Browse repository at this point
Copy the full SHA b1ef8b6View commit details -
Adding copyright notices to new header files.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6f6a1ad - Browse repository at this point
Copy the full SHA 6f6a1adView commit details -
Explicitly define copy/move constructors/assignments.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for ed68519 - Browse repository at this point
Copy the full SHA ed68519View commit details -
Adding new header files to tests/extra_python_package/test_files.py.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 259d824 - Browse repository at this point
Copy the full SHA 259d824View commit details -
Adding tests/pure_cpp/CMakeLists.txt.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for ef3f789 - Browse repository at this point
Copy the full SHA ef3f789View commit details -
Making use of the new find_existing_python_instance() function factor…
…ed out with PR pybind#2822.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 86dc9bd - Browse repository at this point
Copy the full SHA 86dc9bdView commit details -
Moving define PYBIND11_SMART_HOLDER_TYPE_CASTERS(T) down in the file.…
… NO functional changes. Preparation for follow-up work (to keep that diff smaller).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 93e3d58 - Browse repository at this point
Copy the full SHA 93e3d58View commit details -
Reintroducing py::classh, this time as a simple alias for py::class_<…
…U, py::smart_holder>.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 098630e - Browse repository at this point
Copy the full SHA 098630eView commit details -
Replacing detail::is_smart_holder<H> in cast.h with detail::is_smart_…
…holder_type_caster<T>. Moving get_local_load_function_ptr, init_instance_for_type to smart_holder_type_caster_class_hooks. Expanding static_assert in py::type::handle_of<> to accommodate smart_holder_type_casters.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 7ed08cb - Browse repository at this point
Copy the full SHA 7ed08cbView commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c9477c4 - Browse repository at this point
Copy the full SHA c9477c4View commit details -
Adding classu alias for class_<U, std::unique_ptr<U>>.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 7151287 - Browse repository at this point
Copy the full SHA 7151287View commit details -
Giving up on idea to use legacy init_instance only if is_base_of<type…
…_caster_generic, type_caster<T>. There are use cases in the wild that define both a custom type_caster and class_.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 290f2d6 - Browse repository at this point
Copy the full SHA 290f2d6View commit details -
Removing test_type_caster_bare_interface, which was moved to the sepa…
…rate PR pybind#2834.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 13d861f - Browse repository at this point
Copy the full SHA 13d861fView commit details -
Moving up is_smart_holder_type_caster, to also use in cast_is_tempora…
…ry_value_reference.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 8c87dc4 - Browse repository at this point
Copy the full SHA 8c87dc4View commit details -
Adding smart_holder_type_casters for unique_ptr with custom deleter. …
…SEVERE CODE DUPLICATION. This commit is to establish a baseline for consolidating the unique_ptr code.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for aacc8ac - Browse repository at this point
Copy the full SHA aacc8acView commit details -
Unification of unique_ptr, unique_ptr_with_deleter code in smart_hold…
…er_poc.h. Leads to more fitting error messages. Enables use of unique_ptr<T, D> smart_holder_type_casters also for unique_ptr<T>.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6e515cc - Browse repository at this point
Copy the full SHA 6e515ccView commit details -
Copying files as-is from branch test_unique_ptr_member (PR pybind#2672).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c3617bf - Browse repository at this point
Copy the full SHA c3617bfView commit details -
Adding comment, simplifying naming, cmake addition.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for d5cbfa8 - Browse repository at this point
Copy the full SHA d5cbfa8View commit details -
Introducing PYBIND11_USE_SMART_HOLDER_AS_DEFAULT macro (tested only u…
…ndefined; there are many errors with the macro defined).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 3d34ba3 - Browse repository at this point
Copy the full SHA 3d34ba3View commit details -
Removing test_type_caster_bare_interface, which was moved to the sepa…
…rate PR pybind#2834.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 98b2751 - Browse repository at this point
Copy the full SHA 98b2751View commit details -
Fixing oversight introduced with commit 95425f1.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 26525b6 - Browse repository at this point
Copy the full SHA 26525b6View commit details -
Setting record.default_holder correctly for PYBIND11_USE_SMART_HOLDER…
…_AS_DEFAULT. With this test_class.cpp builds and even mostly runs, except `test_multiple_instances_with_same_pointer`, which segfaults because it is using a `unique_ptr` holder but `smart_holder` `type_caster`. Also adding `static_assert`s to generate build errors for such situations, but guarding with `#if 0` to first pivot to test_factory_constructors.cpp.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6ed9cc9 - Browse repository at this point
Copy the full SHA 6ed9cc9View commit details -
Fixing up cast.h and smart_holder.h after rebase.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 7070b52 - Browse repository at this point
Copy the full SHA 7070b52View commit details -
Removing detail/smart_holder_type_casters.h in separate commit.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 07dab2e - Browse repository at this point
Copy the full SHA 07dab2eView commit details -
Commenting out const in def_buffer(... const). With this, test_buffer…
…s builds and runs with PYBIND11_USE_SMART_HOLDER_AS_DEFAULT. Explanation why the const needs to be removed, or fix elsewhere, is still needed, but left for later.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 3f8da23 - Browse repository at this point
Copy the full SHA 3f8da23View commit details -
Adding test_class_sh_factory_constructors, reproducing test_factory_c…
…onstructors failure. Using py::class_ in this commit, to be changed to py::classh for debugging.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 9f6fa1c - Browse repository at this point
Copy the full SHA 9f6fa1cView commit details -
Removing include/pybind11/detail/smart_holder_type_casters.h from CMa…
…keLists.txt, test_files.py (since it does not exist in this branch).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 5bd693e - Browse repository at this point
Copy the full SHA 5bd693eView commit details -
Adding // DANGER ZONE reminders.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 16748f5 - Browse repository at this point
Copy the full SHA 16748f5View commit details -
Converting as many py::class_ to py::classh as possible, not breaking…
… tests.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for e6e441d - Browse repository at this point
Copy the full SHA e6e441dView commit details -
Adding initimpl::construct() overloads, resulting in test_class_sh_fa…
…ctory_constructors feature parity for py::class_ and py::classh.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for dfa00a1 - Browse repository at this point
Copy the full SHA dfa00a1View commit details -
Adding enable_if !is_smart_holder_type_caster to existing initimpl::c…
…onstruct(). With this test_factory_constructors.cpp builds with PYBIND11_USE_SMART_HOLDER_AS_DEFAULT.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 9dd82f1 - Browse repository at this point
Copy the full SHA 9dd82f1View commit details -
Disabling shared_ptr&, shared_ptr* tests when building with PYBIND11_…
…USE_SMART_HOLDER_AS_DEFAULT for now, pending work on smart_holder_type_caster<shared_ptr>.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for fba0729 - Browse repository at this point
Copy the full SHA fba0729View commit details -
Factoring out struct and class definitions into anonymous namespace. …
…Preparation for building with PYBIND11_USE_SMART_HOLDER_AS_DEFAULT.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c4e4da8 - Browse repository at this point
Copy the full SHA c4e4da8View commit details -
Simplifying from_unique_ptr(): typename D = std::default_delete<T> is…
… not needed. Factoring out is_std_default_delete<T>() for consistentcy between ensure_compatible_rtti_uqp_del() and from_unique_ptr().
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 0b73ef4 - Browse repository at this point
Copy the full SHA 0b73ef4View commit details -
Introducing PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS. Using it in t…
…est_smart_ptr.cpp. With this test_smart_ptr builds with PYBIND11_USE_SMART_HOLDER_AS_DEFAULT and all but one test run successfully.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 576a456 - Browse repository at this point
Copy the full SHA 576a456View commit details -
Introducing 1. type_caster_for_class_, used in PYBIND11_MAKE_OPAQUE, …
…and 2. default_holder_type, used in stl_bind.h.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for f65cb0c - Browse repository at this point
Copy the full SHA f65cb0cView commit details -
Using __VA_ARGS__ in PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 4665ff6 - Browse repository at this point
Copy the full SHA 4665ff6View commit details -
Replacing condense_for_macro with much simpler approach.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 6582fb3 - Browse repository at this point
Copy the full SHA 6582fb3View commit details -
Softening static_assert, to only check specifically that smart_holder…
… is not mixed with type_caster_base, and unique_ptr/shared_ptr holders are not mixed with smart_holder_type_casters.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 4a9bc72 - Browse repository at this point
Copy the full SHA 4a9bc72View commit details -
Adding PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS in test_class.cpp (…
…with this all but one test succeed with PYBIND11_USE_SMART_HOLDER_AS_DEFAULT).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for f439b2b - Browse repository at this point
Copy the full SHA f439b2bView commit details -
Adding remaining PYBIND11_SMART_POINTER_HOLDER_TYPE_CASTERS. static_a…
…ssert for "necessary conditions" for both types of default holder, static_assert for "strict conditions" guarded by new PYBIND11_STRICT_ASSERTS_CLASS_HOLDER_VS_TYPE_CASTER_MIX. All tests build & run as before with unique_ptr as the default holder, all tests build for smart_holder as the default holder, even with the strict static_assert.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for efa7adb - Browse repository at this point
Copy the full SHA efa7adbView commit details -
Introducing check_is_smart_holder_type_caster() function for runtime …
…check, and reinterpreting record.default_holder as "uses_unique_ptr_holder". With this test_smart_ptr succeeds. (All 42 tests build, 35 tests succeed, 5 run but have some failures, 2 segfault.)
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 523bfd3 - Browse repository at this point
Copy the full SHA 523bfd3View commit details -
Bug fix: Adding have_value() to smart_holder_type_caster_load. With t…
…his test_builtin_casters succeeds. (All 42 tests build, 36 tests succeed, 5 run but have some failures, 1 segfault.)
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 706ffbd - Browse repository at this point
Copy the full SHA 706ffbdView commit details -
Adding unowned_void_ptr_from_direct_conversion to modified_type_caste…
…r_generic_load_impl. This fixes the last remaining segfault (test_numpy_dtypes). New stats for all tests combined: 12 failed, 458 passed.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 8176a36 - Browse repository at this point
Copy the full SHA 8176a36View commit details -
Adding "Lazy allocation for unallocated values" (for old-style __init…
…__) into load_value_and_holder. Deferring destruction of disowned holder until clear_instance, to remain inspectable for "uninitialized" or "disowned" detection. New stats for all tests combined: 5 failed, 465 passed.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 5068524 - Browse repository at this point
Copy the full SHA 5068524View commit details -
Changing std::shared_ptr pointer/reference to const pointer/reference…
…. New stats for all tests combined: 4 failed, 466 passed.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 64e6a80 - Browse repository at this point
Copy the full SHA 64e6a80View commit details -
Adding return_value_policy::move to permissible policies for unique_p…
…tr returns. New stats for all tests combined: 3 failed, 467 passed.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 2f79cd9 - Browse repository at this point
Copy the full SHA 2f79cd9View commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 40a3afa - Browse repository at this point
Copy the full SHA 40a3afaView commit details -
Manipulating failing ConstructorStats test to pass, to be able to run…
… all tests with ASAN. This version of the code is ASAN clean with unique_ptr or smart_holder as the default. This change needs to be reverted after adopting the existing move-only-if-refcount-is-1 logic used by type_caster_base.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 095d265 - Browse repository at this point
Copy the full SHA 095d265View commit details -
Adding copy constructor and move constructor tracking to atyp. Prepar…
…ation for a follow-up change in smart_holder_type_caster, to make this test sensitive to the changing behavior. [skip ci]
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for dab4495 - Browse repository at this point
Copy the full SHA dab4495View commit details -
Removing
operator T&&() &&
from smart_holder_type_caster, for compa……tibility with the behavior of type_caster_base. Enables reverting 2 of 3 test manipulations applied under commit 249df7c. The manipulation in test_factory_constructors.py is NOT reverted in this commit. [skip ci]
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 20446f1 - Browse repository at this point
Copy the full SHA 20446f1View commit details -
Fixing unfortunate editing mishap. This reverts the last remaining te…
…st manipulation in commit 249df7c and makes all existing unit tests pass with smart_holder as default holder.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for bb79703 - Browse repository at this point
Copy the full SHA bb79703View commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 8736910 - Browse repository at this point
Copy the full SHA 8736910View commit details -
Adding messages to terse
static_assert
s, for pre-C++17 compatibility.Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 52238cb - Browse repository at this point
Copy the full SHA 52238cbView commit details -
Using @pytest.mark.parametrize to run each assert separately (to see …
…all errors, not just the first).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 3346a61 - Browse repository at this point
Copy the full SHA 3346a61View commit details -
Systematically removing _atyp from function names, to make the test c…
…ode simpler.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b792080 - Browse repository at this point
Copy the full SHA b792080View commit details -
Using re.match to accommodate variable number of intermediate MvCtor.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 2003b50 - Browse repository at this point
Copy the full SHA 2003b50View commit details -
Also removing
operator T()
from smart_holder_type_caster, to fix gc……c compilation errors. The only loss is pass_rref in test_class_sh_basic.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 823934f - Browse repository at this point
Copy the full SHA 823934fView commit details -
Systematically replacing
detail::enable_if_t<...smart_holder...>
wi……th `typename std::enable_if<...smart_holder...>::type`. Attempt to work around MSVC 2015 issues, to be tested via GitHub CI. The idea for this change originates from this comment: pybind#1616 (comment)
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 1909436 - Browse repository at this point
Copy the full SHA 1909436View commit details -
Importing re before pytest after observing a PyPy CI flake when impor…
…ting pytest first.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 823ae0a - Browse repository at this point
Copy the full SHA 823ae0aView commit details -
Copying MSVC 2015 compatibility change from branch pr2672_use_smart_h…
…older_as_default.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 0bfa993 - Browse repository at this point
Copy the full SHA 0bfa993View commit details -
Introducing is_smart_holder_type_caster_base_tag, to keep smart_holde…
…r code more disconnected.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 44bdc14 - Browse repository at this point
Copy the full SHA 44bdc14View commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c51dec4 - Browse repository at this point
Copy the full SHA c51dec4View commit details -
Expanding comment for MSVC 2015 workaround.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 23cbc2b - Browse repository at this point
Copy the full SHA 23cbc2bView commit details -
Systematically changing std::enable_if back to detail::enable_if_t, e…
…ffectively reverting commit 5d4b689.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for e0e3ff0 - Browse repository at this point
Copy the full SHA e0e3ff0View commit details -
Removing unused smart_holder_type_caster_load::loaded_as_rvalue_ref (…
…it was an oversight that it was not removed with commit 23036a4).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 795b2bc - Browse repository at this point
Copy the full SHA 795b2bcView commit details -
Removing py::classu, because it does not seem useful enough.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for ceb0ea7 - Browse repository at this point
Copy the full SHA ceb0ea7View commit details -
Reverting commit 6349531 by un-commenting
const
in `def_buffer(...)……`. To make this possible, `operator T const&` and `operator T const*` in `smart_holder_type_caster` need to be marked as `const` member functions.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 3709ab3 - Browse repository at this point
Copy the full SHA 3709ab3View commit details -
Adding construct() overloads for constructing smart_holder from alias…
… unique_ptr, shared_ptr returns.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 53c1064 - Browse repository at this point
Copy the full SHA 53c1064View commit details -
Adding test_class_sh_factory_constructors.cpp to tests/CMakeLists.txt…
… (fixes oversight, this should have been added long before).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 2bf0721 - Browse repository at this point
Copy the full SHA 2bf0721View commit details -
Compatibility with old clang versions (clang 3.6, 3.7 C++11).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for fa54ccb - Browse repository at this point
Copy the full SHA fa54ccbView commit details -
Cleaning up changes to existing unit tests.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 010cdec - Browse repository at this point
Copy the full SHA 010cdecView commit details -
Systematically adding SMART_HOLDER_WIP tag. Removing minor UNTESTED t…
…ags (only the throw are not actually exercised, investing time there has a high cost but very little benefit).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 413c23b - Browse repository at this point
Copy the full SHA 413c23bView commit details -
Splitting out smart_holder_type_casters again, into new detail/smart_…
…holder_type_casters_inline_include.h.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for b222aa4 - Browse repository at this point
Copy the full SHA b222aa4View commit details -
Splitting out smart_holder_init_inline_include.h.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 348d893 - Browse repository at this point
Copy the full SHA 348d893View commit details -
Adding additional new include files to CMakeLists.txt, tests/extra_py…
…thon_package/test_files.py.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 8cac3e0 - Browse repository at this point
Copy the full SHA 8cac3e0View commit details -
clang-format cleanup of most smart_holder code.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 4ffa561 - Browse repository at this point
Copy the full SHA 4ffa561View commit details -
Adding source code comments in response to review.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 81cd3cc - Browse repository at this point
Copy the full SHA 81cd3ccView commit details -
Simple micro-benchmark ("ubench") comparing runtime performance for s…
…everal holders. Tested using github.com/rwgk/pybind11_scons and Google-internal build system. Sorry, no cmake support at the moment. First results: https://docs.google.com/spreadsheets/d/1InapCYws2Gt-stmFf_Bwl33eOMo3aLE_gc9adveY7RU/edit#gid=0
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for baf51b4 - Browse repository at this point
Copy the full SHA baf51b4View commit details -
Breaking out number_bucket.h, adding hook for also collecting perform…
…ance data for PyCLIF.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 0964419 - Browse repository at this point
Copy the full SHA 0964419View commit details -
Accounting for ubench in MANIFEST.in (simply prune, for now).
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 1e8fe10 - Browse repository at this point
Copy the full SHA 1e8fe10View commit details -
Smarter determination of call_repetitions.
[skip ci]
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 227de40 - Browse repository at this point
Copy the full SHA 227de40View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb505c0 - Browse repository at this point
Copy the full SHA fb505c0View commit details -
Adding ubench/python/number_bucket.clif here for general visibility.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for a886a56 - Browse repository at this point
Copy the full SHA a886a56View commit details -
Ralf W. Grosse-Kunstleve committed
Feb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 044056a - Browse repository at this point
Copy the full SHA 044056aView commit details -
Merging detail/smart_holder_init_inline_include.h into detail/init.h.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 3d31698 - Browse repository at this point
Copy the full SHA 3d31698View commit details -
Renaming detail/is_smart_holder_type_caster.h -> detail/smart_holder_…
…sfinae_hooks_only.h.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 658cf3b - Browse repository at this point
Copy the full SHA 658cf3bView commit details -
Renaming is_smart_holder_type_caster -> type_uses_smart_holder_type_c…
…aster for clarity.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 3a303ee - Browse repository at this point
Copy the full SHA 3a303eeView commit details -
Renaming type_caster_type_is_smart_holder_type_caster -> wrapped_type…
…_uses_smart_holder_type_caster for clarity.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for ce40fb6 - Browse repository at this point
Copy the full SHA ce40fb6View commit details -
Renaming is_smart_holder_type_caster_base_tag -> smart_holder_type_ca…
…ster_base_tag for simplicity.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c56bd3a - Browse repository at this point
Copy the full SHA c56bd3aView commit details -
Adding copyright notices and minor colateral cleanup.
Ralf W. Grosse-Kunstleve committedFeb 23, 2021 Configuration menu - View commit details
-
Copy full SHA for 62afdc0 - Browse repository at this point
Copy the full SHA 62afdc0View commit details
Commits on Feb 24, 2021
-
iwyu cleanup (comprehensive only for cast.h and smart_holder*.h files).
Ralf W. Grosse-Kunstleve committedFeb 24, 2021 Configuration menu - View commit details
-
Copy full SHA for 4f5f441 - Browse repository at this point
Copy the full SHA 4f5f441View commit details -
Fixing
git rebase master
accident.Ralf W. Grosse-Kunstleve committedFeb 24, 2021 Configuration menu - View commit details
-
Copy full SHA for f5dadd4 - Browse repository at this point
Copy the full SHA f5dadd4View commit details -
Moving large
pragma warning
block from pybind11.h to detail/common.h.Ralf W. Grosse-Kunstleve committedFeb 24, 2021 Configuration menu - View commit details
-
Copy full SHA for 4bae719 - Browse repository at this point
Copy the full SHA 4bae719View commit details -
Fixing another
git rebase master
accident.Ralf W. Grosse-Kunstleve committedFeb 24, 2021 Configuration menu - View commit details
-
Copy full SHA for 4255d6c - Browse repository at this point
Copy the full SHA 4255d6cView commit details -
PYBIND11_USE_SMART_HOLDER_AS_DEFAULT
Ralf W. Grosse-Kunstleve committedFeb 24, 2021 Configuration menu - View commit details
-
Copy full SHA for 7559a54 - Browse repository at this point
Copy the full SHA 7559a54View commit details