Skip to content

Commit 6ccd5cb

Browse files
iterator::operator== fix for C++20 (#1798)
* fix incorrect C++ standard library usage to make C++20 build work * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent a7559f8 commit 6ccd5cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/IO/ADIOS/ADIOS2PreloadVariables.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ namespace
5656
}
5757
auto operator==(FilteredInputIterator const &other) const -> bool
5858
{
59-
return static_cast<Iterator const *>(this)->operator==(other);
59+
return static_cast<Iterator const &>(*this) ==
60+
static_cast<Iterator const &>(other);
6061
}
6162
using Iterator::operator*;
6263
using Iterator::operator->;

0 commit comments

Comments
 (0)