diff --git a/src/dwarfs/inode_manager.cpp b/src/dwarfs/inode_manager.cpp index 83ede7d09..e981c2776 100644 --- a/src/dwarfs/inode_manager.cpp +++ b/src/dwarfs/inode_manager.cpp @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include @@ -93,8 +92,8 @@ class inode_ : public inode { bool has_category(fragment_category cat) const override { DWARFS_CHECK(!fragments_.empty(), "has_category() called with no fragments"); - return std::ranges::any_of( - fragments_, [cat](auto const& f) { return f.category() == cat; }); + return std::any_of(fragments_.begin(), fragments_.end(), + [cat](auto const& f) { return f.category() == cat; }); } std::optional