Skip to content

[clang-doc] template operator T() produces a bad name #59812

Description

@danakj

This operator:

  template <SignedPrimitiveInteger U>
    requires(::sus::mem::size_of<U>() >= ::sus::mem::size_of<PrimitiveT>())
  constexpr inline explicit operator U() const {
    return primitive_value;
  }              

Produces this docs:

operator type-parameter-0-0
public U operator type-parameter-0-0()

Which could be greatly improved by just saying "conversion operator to type U. But should also include the concept SignedPrimitiveInteger as the conversion is only valid to a matching type.

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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions