mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-14 09:34:46 +00:00
b2c2c79240
Previously, pybind11 required classes using std::shared_ptr<> to derive from std::enable_shared_from_this<> (or compilation failures would ensue). Everything now also works for classes that don't do this, assuming that some basic rules are followed (e.g. never passing "raw" pointers of instances manged by shared pointers). The safer std::enable_shared_from_this<> approach continues to be supported.
244 lines
5.4 KiB
Plaintext
244 lines
5.4 KiB
Plaintext
MyObject1[1] constructor
|
|
Initialized ref from pointer 0x1347ba0
|
|
MyObject1[2] constructor
|
|
Initialized ref from pointer 0x12b9270
|
|
Initialized ref from ref 0x12b9270
|
|
Destructing ref 0x12b9270
|
|
MyObject1[3] constructor
|
|
Initialized ref from pointer 0x12a2a90
|
|
MyObject1[1]
|
|
Created empty ref
|
|
Assigning ref 0x1347ba0
|
|
Initialized ref from ref 0x1347ba0
|
|
MyObject1[1]
|
|
Destructing ref 0x1347ba0
|
|
Destructing ref 0x1347ba0
|
|
Created empty ref
|
|
Assigning ref 0x1347ba0
|
|
MyObject1[1]
|
|
Destructing ref 0x1347ba0
|
|
Created empty ref
|
|
Assigning ref 0x1347ba0
|
|
MyObject1[1]
|
|
Destructing ref 0x1347ba0
|
|
MyObject1[2]
|
|
Created empty ref
|
|
Assigning ref 0x12b9270
|
|
Initialized ref from ref 0x12b9270
|
|
MyObject1[2]
|
|
Destructing ref 0x12b9270
|
|
Destructing ref 0x12b9270
|
|
Created empty ref
|
|
Assigning ref 0x12b9270
|
|
MyObject1[2]
|
|
Destructing ref 0x12b9270
|
|
Created empty ref
|
|
Assigning ref 0x12b9270
|
|
MyObject1[2]
|
|
Destructing ref 0x12b9270
|
|
MyObject1[3]
|
|
Created empty ref
|
|
Assigning ref 0x12a2a90
|
|
Initialized ref from ref 0x12a2a90
|
|
MyObject1[3]
|
|
Destructing ref 0x12a2a90
|
|
Destructing ref 0x12a2a90
|
|
Created empty ref
|
|
Assigning ref 0x12a2a90
|
|
MyObject1[3]
|
|
Destructing ref 0x12a2a90
|
|
Created empty ref
|
|
Assigning ref 0x12a2a90
|
|
MyObject1[3]
|
|
Destructing ref 0x12a2a90
|
|
Destructing ref 0x12b9270
|
|
MyObject1[2] destructor
|
|
Destructing ref 0x1347ba0
|
|
MyObject1[1] destructor
|
|
MyObject1[4] constructor
|
|
Initialized ref from pointer 0x1347ba0
|
|
MyObject1[5] constructor
|
|
Initialized ref from pointer 0x1299190
|
|
Initialized ref from ref 0x1299190
|
|
Destructing ref 0x1299190
|
|
MyObject1[6] constructor
|
|
Initialized ref from pointer 0x133e2f0
|
|
Destructing ref 0x12a2a90
|
|
MyObject1[3] destructor
|
|
MyObject1[4]
|
|
Created empty ref
|
|
Assigning ref 0x1347ba0
|
|
Initialized ref from ref 0x1347ba0
|
|
MyObject1[4]
|
|
Destructing ref 0x1347ba0
|
|
Destructing ref 0x1347ba0
|
|
Created empty ref
|
|
Assigning ref 0x1347ba0
|
|
MyObject1[4]
|
|
Destructing ref 0x1347ba0
|
|
Created empty ref
|
|
Assigning ref 0x1347ba0
|
|
MyObject1[4]
|
|
Destructing ref 0x1347ba0
|
|
MyObject1[4]
|
|
Created empty ref
|
|
Assigning ref 0x1347ba0
|
|
Initialized ref from ref 0x1347ba0
|
|
MyObject1[4]
|
|
Destructing ref 0x1347ba0
|
|
Destructing ref 0x1347ba0
|
|
Created empty ref
|
|
Assigning ref 0x1347ba0
|
|
MyObject1[4]
|
|
Destructing ref 0x1347ba0
|
|
Created empty ref
|
|
Assigning ref 0x1347ba0
|
|
MyObject1[4]
|
|
Destructing ref 0x1347ba0
|
|
MyObject1[5]
|
|
Created empty ref
|
|
Assigning ref 0x1299190
|
|
Initialized ref from ref 0x1299190
|
|
MyObject1[5]
|
|
Destructing ref 0x1299190
|
|
Destructing ref 0x1299190
|
|
Created empty ref
|
|
Assigning ref 0x1299190
|
|
MyObject1[5]
|
|
Destructing ref 0x1299190
|
|
Created empty ref
|
|
Assigning ref 0x1299190
|
|
MyObject1[5]
|
|
Destructing ref 0x1299190
|
|
MyObject1[5]
|
|
Created empty ref
|
|
Assigning ref 0x1299190
|
|
Initialized ref from ref 0x1299190
|
|
MyObject1[5]
|
|
Destructing ref 0x1299190
|
|
Destructing ref 0x1299190
|
|
Created empty ref
|
|
Assigning ref 0x1299190
|
|
MyObject1[5]
|
|
Destructing ref 0x1299190
|
|
Created empty ref
|
|
Assigning ref 0x1299190
|
|
MyObject1[5]
|
|
Destructing ref 0x1299190
|
|
MyObject1[6]
|
|
Created empty ref
|
|
Assigning ref 0x133e2f0
|
|
Initialized ref from ref 0x133e2f0
|
|
MyObject1[6]
|
|
Destructing ref 0x133e2f0
|
|
Destructing ref 0x133e2f0
|
|
Created empty ref
|
|
Assigning ref 0x133e2f0
|
|
MyObject1[6]
|
|
Destructing ref 0x133e2f0
|
|
Created empty ref
|
|
Assigning ref 0x133e2f0
|
|
MyObject1[6]
|
|
Destructing ref 0x133e2f0
|
|
MyObject1[6]
|
|
Created empty ref
|
|
Assigning ref 0x133e2f0
|
|
Initialized ref from ref 0x133e2f0
|
|
MyObject1[6]
|
|
Destructing ref 0x133e2f0
|
|
Destructing ref 0x133e2f0
|
|
Created empty ref
|
|
Assigning ref 0x133e2f0
|
|
MyObject1[6]
|
|
Destructing ref 0x133e2f0
|
|
Created empty ref
|
|
Assigning ref 0x133e2f0
|
|
MyObject1[6]
|
|
Destructing ref 0x133e2f0
|
|
MyObject1[7] constructor
|
|
Initialized ref from pointer 0x133f3a0
|
|
MyObject1[7]
|
|
Destructing ref 0x133f3a0
|
|
MyObject1[7] destructor
|
|
Created empty ref
|
|
MyObject1[7] constructor
|
|
Initialized ref from pointer 0x12a2a90
|
|
Assigning ref 0x12a2a90
|
|
Initialized ref from ref 0x12a2a90
|
|
MyObject1[7]
|
|
Destructing ref 0x12a2a90
|
|
Destructing ref 0x12a2a90
|
|
Destructing ref 0x12a2a90
|
|
MyObject1[7] destructor
|
|
Created empty ref
|
|
MyObject1[7] constructor
|
|
Initialized ref from pointer 0x133f3a0
|
|
Assigning ref 0x133f3a0
|
|
MyObject1[7]
|
|
Destructing ref 0x133f3a0
|
|
Destructing ref 0x133f3a0
|
|
MyObject1[7] destructor
|
|
Created empty ref
|
|
MyObject1[7] constructor
|
|
Initialized ref from pointer 0x12a2a90
|
|
Assigning ref 0x12a2a90
|
|
MyObject1[7]
|
|
Destructing ref 0x12a2a90
|
|
Destructing ref 0x12a2a90
|
|
MyObject1[7] destructor
|
|
Destructing ref 0x133e2f0
|
|
MyObject1[6] destructor
|
|
Destructing ref 0x1299190
|
|
MyObject1[5] destructor
|
|
Destructing ref 0x1347ba0
|
|
MyObject1[4] destructor
|
|
MyObject2[8] constructor
|
|
MyObject2[6] constructor
|
|
MyObject2[7] constructor
|
|
MyObject2[8]
|
|
MyObject2[8]
|
|
MyObject2[8]
|
|
MyObject2[8]
|
|
MyObject2[6]
|
|
MyObject2[6]
|
|
MyObject2[6]
|
|
MyObject2[6]
|
|
MyObject2[7]
|
|
MyObject2[7]
|
|
MyObject2[7]
|
|
MyObject2[7]
|
|
MyObject2[6] destructor
|
|
MyObject2[8] destructor
|
|
MyObject3[9] constructor
|
|
MyObject3[8] constructor
|
|
MyObject3[9] constructor
|
|
MyObject2[7] destructor
|
|
MyObject3[9]
|
|
MyObject3[9]
|
|
MyObject3[9]
|
|
MyObject3[9]
|
|
MyObject3[8]
|
|
MyObject3[8]
|
|
MyObject3[8]
|
|
MyObject3[8]
|
|
MyObject3[9]
|
|
MyObject3[9]
|
|
MyObject3[9]
|
|
MyObject3[9]
|
|
MyObject3[8] destructor
|
|
MyObject3[9] destructor
|
|
Reference count = 1
|
|
Reference count = 1
|
|
Reference count = 1
|
|
<example.MyObject1 object at 0x7f830b500e68>
|
|
<example.MyObject1 object at 0x7f830b4fc688>
|
|
<example.MyObject1 object at 0x7f830b4fc5a8>
|
|
7
|
|
<example.MyObject2 object at 0x7f830b50b330>
|
|
<example.MyObject2 object at 0x7f830b50bdb0>
|
|
<example.MyObject2 object at 0x7f83098f6330>
|
|
<example.MyObject3 object at 0x7f830b50b330>
|
|
<example.MyObject3 object at 0x7f830b50bdb0>
|
|
<example.MyObject3 object at 0x7f83098f6370>
|
|
MyObject3[9] destructor
|