We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7338ac commit 0919833Copy full SHA for 0919833
include/pybind11/pybind11.h
@@ -1967,7 +1967,7 @@ struct iterator_state {
1967
1968
// Note: these helpers take the iterator by non-const reference because some
1969
// 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>()))>
+template <typename Iterator, typename ResultType = decltype(*std::declval<Iterator>())>
1971
struct iterator_access {
1972
using result_type = ResultType;
1973
// NOLINTNEXTLINE(readability-const-return-type) // PR #3263
0 commit comments