Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: No support for std::derived_from concept #1808

Closed
SarkisKhachatryan opened this issue Nov 21, 2022 · 4 comments
Closed

[Bug]: No support for std::derived_from concept #1808

SarkisKhachatryan opened this issue Nov 21, 2022 · 4 comments
Labels

Comments

@SarkisKhachatryan
Copy link

Description

when trying to use std::derived_from concept, getting this error.

error: no template named 'derived_from' in namespace 'std'
      template <std::derived_from<smth> T>

Upstream bug

No response

Commit to cherry-pick

No response

Affected versions

r25

Canary version

No response

Host OS

Linux

Host OS version

Ubuntu 20.04

Affected ABIs

arm64-v8a

@SarkisKhachatryan
Copy link
Author

As a workaround, added this code snippet to use it for now

template <class Derived, class Base>
concept derived_from = std::is_base_of_v<Base, Derived> &&
    std::is_convertible_v<const volatile Derived*, const volatile Base*>;

this works fine

@DanAlbert
Copy link
Member

Any reason to believe this isn't a duplicate of the pinned issue #1530?

@DanAlbert
Copy link
Member

Closing for lack of feedback. Probably a dup.

@DanAlbert DanAlbert closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2022
@SarkisKhachatryan
Copy link
Author

Sure, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants