mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-01 01:17:10 +00:00
Add template keyword
This commit is contained in:
parent
c3a313b0e4
commit
9ac9c07766
@ -2269,7 +2269,7 @@ iterator object_api<D>::end() const {
|
||||
template <typename D>
|
||||
template <typename T>
|
||||
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>
|
||||
obj_attr_accessor object_api<D>::attr(handle key) const {
|
||||
|
Loading…
Reference in New Issue
Block a user