Skip to content

GB229 20.20.03 Allow std::format to throw for argument / format string mismatch LWG 3340 #226

@wg21bot

Description

@wg21bot

Formatting functions don't allow throwing on incorrect arguments
std::format is only allowed to throw if fmt is not a format string, but the intention is it also throws for errors during formatting, e.g. there are fewer arguments than required by the format string.

Proposed change:
Allow exceptions even when the format string is valid. Possibly state the Effects: more precisely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions