Skip to content

Use constexpr in container algorithm#1880

Open
MBkkt wants to merge 1 commit into
abseil:masterfrom
MBkkt:master
Open

Use constexpr in container algorithm#1880
MBkkt wants to merge 1 commit into
abseil:masterfrom
MBkkt:master

Conversation

@MBkkt

@MBkkt MBkkt commented May 1, 2025

Copy link
Copy Markdown
Contributor

https://github.com/llvm/llvm-project/blob/main/libcxx/include/algorithm
checked with llvm libc++19 and clang19 (only algorithms which support constexpr since c++20)

@derekmauro

Copy link
Copy Markdown
Member

Interestingly this passes Abseil's tests but breaks almost our entire monorepo in certain cases where operator<=> is defined. I haven't had a chance to dig into why, and I'm not sure I will have time soon.

@MBkkt

MBkkt commented May 9, 2025

Copy link
Copy Markdown
Contributor Author

Interestingly this passes Abseil's tests but breaks almost our entire monorepo in certain cases where operator<=> is defined. I haven't had a chance to dig into why, and I'm not sure I will have time soon.

@derekmauro Hi, can you share some example with compiler/stdlib/std version if possible?

@derekmauro

derekmauro commented May 9, 2025

Copy link
Copy Markdown
Member

I'm pretty sure the problem is not the fault of your change. I think there are a handful of users that have non-compliant code that I will need to fix first.

@MBkkt

MBkkt commented May 9, 2025

Copy link
Copy Markdown
Contributor Author

Ok, thanks for explaining

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.

3 participants