Skip to content

flow + ipc[_*]: Style/readability: Use static_assert(false, "...") instead of #error "...". #88

@ygoldfeld

Description

@ygoldfeld

Style/readability: Use static_assert(false, "...") instead of #error "...".

Do this for Flow and Flow-IPC.

Recommend as much in doc-coding_style.cpp.

A few places already use it. It's just more convenient for multi-line error strings; plus it's vaguely more modern. The emitted errors are nicer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    style-refactorAn enhancement mainly for style and/or best practices; maybe minor perf benefits

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions