@@ -218,7 +218,7 @@ void construct(value_and_holder &v_h, std::unique_ptr<Cpp<Class>, D> &&unq_ptr,
218
218
// trampoline Python object alive. For types that don't inherit from enable_shared_from_this
219
219
// it does not matter if void_cast_raw_ptr is true or false, therefore it's not necessary
220
220
// to also inspect the type.
221
- auto smhldr = type_caster<Cpp<Class>>::template smart_holder_from_unique_ptr (
221
+ auto smhldr = type_caster<Cpp<Class>>::smart_holder_from_unique_ptr (
222
222
std::move (unq_ptr), /* void_cast_raw_ptr*/ Class::has_alias && is_alias<Class>(ptr));
223
223
v_h.value_ptr () = ptr;
224
224
v_h.type ->init_instance (v_h.inst , &smhldr);
@@ -233,7 +233,7 @@ void construct(value_and_holder &v_h,
233
233
bool /* need_alias*/ ) {
234
234
auto *ptr = unq_ptr.get ();
235
235
no_nullptr (ptr);
236
- auto smhldr = type_caster<Alias<Class>>::template smart_holder_from_unique_ptr (
236
+ auto smhldr = type_caster<Alias<Class>>::smart_holder_from_unique_ptr (
237
237
std::move (unq_ptr), /* void_cast_raw_ptr*/ true );
238
238
v_h.value_ptr () = ptr;
239
239
v_h.type ->init_instance (v_h.inst , &smhldr);
@@ -250,7 +250,7 @@ void construct(value_and_holder &v_h, std::shared_ptr<Cpp<Class>> &&shd_ptr, boo
250
250
throw type_error (" pybind11::init(): construction failed: returned std::shared_ptr pointee "
251
251
" is not an alias instance" );
252
252
}
253
- auto smhldr = type_caster<Cpp<Class>>::template smart_holder_from_shared_ptr (shd_ptr);
253
+ auto smhldr = type_caster<Cpp<Class>>::smart_holder_from_shared_ptr (shd_ptr);
254
254
v_h.value_ptr () = ptr;
255
255
v_h.type ->init_instance (v_h.inst , &smhldr);
256
256
}
@@ -263,7 +263,7 @@ void construct(value_and_holder &v_h,
263
263
bool /* need_alias*/ ) {
264
264
auto *ptr = shd_ptr.get ();
265
265
no_nullptr (ptr);
266
- auto smhldr = type_caster<Alias<Class>>::template smart_holder_from_shared_ptr (shd_ptr);
266
+ auto smhldr = type_caster<Alias<Class>>::smart_holder_from_shared_ptr (shd_ptr);
267
267
v_h.value_ptr () = ptr;
268
268
v_h.type ->init_instance (v_h.inst , &smhldr);
269
269
}
0 commit comments