Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit f7ec8a6

Browse files
committed
Sendable::InitSendable: force builder to be a reference
- Not really sure why it isn't already a reference? - Fixes #630
1 parent 66447a0 commit f7ec8a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gen/Sendable.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ classes:
88
shared_ptr: true
99
methods:
1010
InitSendable:
11+
virtual_xform: |
12+
[&](py::function fn) {
13+
auto builderHandle = py::cast(builder, py::return_value_policy::reference);
14+
fn(builderHandle);
15+
}

0 commit comments

Comments
 (0)