Skip to content

[libc] Add deduction guide and LIBC_INLINE to cpp::expected and cpp::unexpected #91904

Closed
@SchrodingerZhu

Description

@SchrodingerZhu

cpp::expected inside libc's support library needs to be updated:

  • functions inside a header library should be marked with LIBC_INLINE
  • proper deduction guide should be added so that we can avoid extra type parameters such that <Error> in cpp::unexpected<Error>(Error::Invalid).

Metadata

Metadata

Labels

good first issuehttps://github.com/llvm/llvm-project/contributelibc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions