Skip to content

Commit 4b54973

Browse files
committed
Merge branch 'smart_holder' into pybind11k_merge_sh
2 parents a452166 + 1cafcee commit 4b54973

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/pybind11/detail/init.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void construct(value_and_holder &v_h, std::unique_ptr<Cpp<Class>, D> &&unq_ptr,
221221
// trampoline Python object alive. For types that don't inherit from enable_shared_from_this
222222
// it does not matter if void_cast_raw_ptr is true or false, therefore it's not necessary
223223
// to also inspect the type.
224-
auto smhldr = type_caster<Cpp<Class>>::template smart_holder_from_unique_ptr(
224+
auto smhldr = type_caster<Cpp<Class>>::smart_holder_from_unique_ptr(
225225
std::move(unq_ptr), /*void_cast_raw_ptr*/ Class::has_alias && is_alias<Class>(ptr));
226226
v_h.value_ptr() = ptr;
227227
v_h.type->init_instance(v_h.inst, &smhldr);
@@ -236,7 +236,7 @@ void construct(value_and_holder &v_h,
236236
bool /*need_alias*/) {
237237
auto *ptr = unq_ptr.get();
238238
no_nullptr(ptr);
239-
auto smhldr = type_caster<Alias<Class>>::template smart_holder_from_unique_ptr(
239+
auto smhldr = type_caster<Alias<Class>>::smart_holder_from_unique_ptr(
240240
std::move(unq_ptr), /*void_cast_raw_ptr*/ true);
241241
v_h.value_ptr() = ptr;
242242
v_h.type->init_instance(v_h.inst, &smhldr);
@@ -253,7 +253,7 @@ void construct(value_and_holder &v_h, std::shared_ptr<Cpp<Class>> &&shd_ptr, boo
253253
throw type_error("pybind11::init(): construction failed: returned std::shared_ptr pointee "
254254
"is not an alias instance");
255255
}
256-
auto smhldr = type_caster<Cpp<Class>>::template smart_holder_from_shared_ptr(shd_ptr);
256+
auto smhldr = type_caster<Cpp<Class>>::smart_holder_from_shared_ptr(shd_ptr);
257257
v_h.value_ptr() = ptr;
258258
v_h.type->init_instance(v_h.inst, &smhldr);
259259
}
@@ -266,7 +266,7 @@ void construct(value_and_holder &v_h,
266266
bool /*need_alias*/) {
267267
auto *ptr = shd_ptr.get();
268268
no_nullptr(ptr);
269-
auto smhldr = type_caster<Alias<Class>>::template smart_holder_from_shared_ptr(shd_ptr);
269+
auto smhldr = type_caster<Alias<Class>>::smart_holder_from_shared_ptr(shd_ptr);
270270
v_h.value_ptr() = ptr;
271271
v_h.type->init_instance(v_h.inst, &smhldr);
272272
}

0 commit comments

Comments
 (0)