File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,10 @@ PYBIND11_NOINLINE inline handle get_type_handle(const std::type_info &tp, bool t
204
204
}
205
205
206
206
struct value_and_holder {
207
- instance *inst;
208
- size_t index;
209
- const detail::type_info *type;
210
- void **vh;
207
+ instance *inst = nullptr ;
208
+ size_t index = 0u ;
209
+ const detail::type_info *type = nullptr ;
210
+ void **vh = nullptr ;
211
211
212
212
// Main constructor for a found value/holder:
213
213
value_and_holder (instance *i, const detail::type_info *type, size_t vpos, size_t index) :
@@ -216,7 +216,7 @@ struct value_and_holder {
216
216
{}
217
217
218
218
// Default constructor (used to signal a value-and-holder not found by get_value_and_holder())
219
- value_and_holder () : inst{ nullptr } {}
219
+ value_and_holder () {}
220
220
221
221
// Used for past-the-end iterator
222
222
value_and_holder (size_t index) : index{index} {}
You can’t perform that action at this time.
0 commit comments