Skip to content

simplify condition for ABSL_INTERNAL_STD_FILESYSTEM_PATH_HASH_AVAILABLE#2066

Open
h-vetinari wants to merge 1 commit into
abseil:masterfrom
h-vetinari:fs
Open

simplify condition for ABSL_INTERNAL_STD_FILESYSTEM_PATH_HASH_AVAILABLE#2066
h-vetinari wants to merge 1 commit into
abseil:masterfrom
h-vetinari:fs

Conversation

@h-vetinari
Copy link
Copy Markdown
Contributor

The conditions for ABSL_INTERNAL_STD_FILESYSTEM_PATH_HASH_AVAILABLE are basically always true, since abseil now requires C++17 (and all compilers have implemented __cpp_lib_filesystem for a long time), plus the macOS lower bound has long moved past the versions being considered here.

It could be deleted entirely depending on what's the status resp. support for XTENSA. I've left it in for now because I don't know the details there.

Comment thread absl/hash/internal/hash.h
return H::combine_contiguous(std::move(hash_state), str.data(), str.size());
}

#if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L && \
Copy link
Copy Markdown
Member

@derekmauro derekmauro Jun 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of all the PRs I've accepted, I don't think there is any I regret accepting more than adding hashing for std::filesystem::path. I must have wasted an entire week on workarounds for platforms that do not have a file system. I think it is fine to remove ENVIRONMENT stuff, but please restore the __cpp_lib_filesystem guards. I don't feel like researching it, but I think there are platforms that do not define this because they do not have a file system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants