Add template keyword

This commit is contained in:
Aaron Gokaslan 2022-06-14 14:29:25 -04:00
parent c3a313b0e4
commit 9ac9c07766

View File

@ -2269,7 +2269,7 @@ iterator object_api<D>::end() const {
template <typename D> template <typename D>
template <typename T> template <typename T>
item_accessor object_api<D>::operator[](T &&key) const { item_accessor object_api<D>::operator[](T &&key) const {
return {derived(), detail::object_or_cast(std::forward<T>(key)).cast<object>()}; return {derived(), detail::object_or_cast(std::forward<T>(key)).template cast<object>()};
} }
template <typename D> template <typename D>
obj_attr_accessor object_api<D>::attr(handle key) const { obj_attr_accessor object_api<D>::attr(handle key) const {