@@ -218,7 +218,7 @@ void construct(value_and_holder &v_h, std::unique_ptr<Cpp<Class>, D> &&unq_ptr,
218218 // trampoline Python object alive. For types that don't inherit from enable_shared_from_this
219219 // it does not matter if void_cast_raw_ptr is true or false, therefore it's not necessary
220220 // 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 (
222222 std::move (unq_ptr), /* void_cast_raw_ptr*/ Class::has_alias && is_alias<Class>(ptr));
223223 v_h.value_ptr () = ptr;
224224 v_h.type ->init_instance (v_h.inst , &smhldr);
@@ -233,7 +233,7 @@ void construct(value_and_holder &v_h,
233233 bool /* need_alias*/ ) {
234234 auto *ptr = unq_ptr.get ();
235235 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 (
237237 std::move (unq_ptr), /* void_cast_raw_ptr*/ true );
238238 v_h.value_ptr () = ptr;
239239 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
250250 throw type_error (" pybind11::init(): construction failed: returned std::shared_ptr pointee "
251251 " is not an alias instance" );
252252 }
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);
254254 v_h.value_ptr () = ptr;
255255 v_h.type ->init_instance (v_h.inst , &smhldr);
256256}
@@ -263,7 +263,7 @@ void construct(value_and_holder &v_h,
263263 bool /* need_alias*/ ) {
264264 auto *ptr = shd_ptr.get ();
265265 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);
267267 v_h.value_ptr () = ptr;
268268 v_h.type ->init_instance (v_h.inst , &smhldr);
269269}
0 commit comments