Skip to content

Consider defaulting template parameters for exception_policy class #145

@correaa

Description

@correaa

From the documentation

using logging_exception_policy = exception_policy<
    log_runtime_exception,    // arithmetic error
    ignore_exception,         // implementation defined behavior
    ignore_exception,         // undefined behavior
    ignore_exception          // uninitialized value
>;

It would make it less verbose to default the last three template parameters, in which case the example will look like this:

using logging_exception_policy = exception_policy<
    log_runtime_exception,    // arithmetic error
>;

making use cases like this simpler: https://godbolt.org/z/Yqa51dE7b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions