mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +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 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user