Skip to content

Add test for C++20 concepts. NFC - #14301

Merged
sbc100 merged 1 commit into
mainfrom
add_concepts_test
May 26, 2021
Merged

sbc100 merged 1 commit into
mainfrom
add_concepts_test

Conversation

@sbc100

@sbc100 sbc100 commented May 26, 2021

Copy link
Copy Markdown
Collaborator

Now that libcxx is updated to llvm-12, test that the concepts header is
usable.

Sadly it looks like llvm has not yet implemented std::movable which
was requested in #14236, but that is really an upstream issue at this
point.

Fixes: #14236

@sbc100
sbc100 requested a review from kripken May 26, 2021 15:38
Now that libcxx is updated to llvm-12, test that the concepts header is
usable.

Sadly it looks like llvm has not yet implemented `std::movable` which
was requested in #14236, but that is really an upstream issue at this
point.

Fixes: #14236
@sbc100
sbc100 force-pushed the add_concepts_test branch from f70152b to ddb9e43 Compare May 26, 2021 15:40
@sbc100
sbc100 requested a review from dschuff May 26, 2021 15:44
@sbc100
sbc100 merged commit 4840964 into main May 26, 2021
@sbc100
sbc100 deleted the add_concepts_test branch May 26, 2021 18:20
@nasso

nasso commented May 28, 2021 •

Copy link
Copy Markdown

std::movable was added upstream by the following commit: llvm/llvm-project@dc9f385

Maybe emscripten's fork just needs an update? (clang++ already has support for it)

edit: ah, it seems like it just didn't make it to the release/12.x branch yet... :(

@sbc100

sbc100 commented May 28, 2021 •

Copy link
Copy Markdown
Collaborator Author

Yup, we could possibly update beyond the latest stable release (llvm-12) bit I'm not sure it a good idea / worth it. I'm not sure we need to be that cutting edge with our standard library support.

@kripken

kripken commented Jun 1, 2021

Copy link
Copy Markdown
Member

I tend to agree - sticking to stable LLVM versions for system libraries seems safer, unless there is a really strong reason for doing otherwise.

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.

c++ 20 concept support

4 participants