Skip to content

Commit 0919833

Browse files
authored
Update include/pybind11/pybind11.h
1 parent b7338ac commit 0919833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/pybind11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,7 @@ struct iterator_state {
19671967

19681968
// Note: these helpers take the iterator by non-const reference because some
19691969
// iterators in the wild can't be dereferenced when const. C++ needs the extra parens in decltype.
1970-
template <typename Iterator, typename ResultType = decltype((*std::declval<Iterator>()))>
1970+
template <typename Iterator, typename ResultType = decltype(*std::declval<Iterator>())>
19711971
struct iterator_access {
19721972
using result_type = ResultType;
19731973
// NOLINTNEXTLINE(readability-const-return-type) // PR #3263

0 commit comments

Comments
 (0)