Skip to content

C++20 concepts require a semicolon after the braces #225

@jblueberry

Description

@jblueberry

I have a code part like:

template <typename T>
concept IndexableToChar = requires(T t) {
  { t[0] } -> std::convertible_to<char>;
};

And cpplint says You don't need a ; after a } [readability/braces] [4]. But here this ; is needed, otherwise there will be compiling error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions