Skip to content

Commit 14e4f26

Browse files
authored
Update pybind11.h
1 parent 0919833 commit 14e4f26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/pybind11.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,15 +1976,15 @@ struct iterator_access {
19761976
}
19771977
};
19781978

1979-
template <typename Iterator, typename ResultType = decltype(((*std::declval<Iterator>()).first)) >
1979+
template <typename Iterator, typename ResultType = decltype((*std::declval<Iterator>()).first) >
19801980
struct iterator_key_access {
19811981
using result_type = ResultType;
19821982
result_type operator()(Iterator &it) const {
19831983
return (*it).first;
19841984
}
19851985
};
19861986

1987-
template <typename Iterator, typename ResultType = decltype(((*std::declval<Iterator>()).second))>
1987+
template <typename Iterator, typename ResultType = decltype((*std::declval<Iterator>()).second)>
19881988
struct iterator_value_access {
19891989
using result_type = ResultType;
19901990
result_type operator()(Iterator &it) const {

0 commit comments

Comments
 (0)