Skip to content

get rid of the ::value in include_summand<propto, T1, ..., TN>::value #1521

Description

@mcol

Description

This was suggested by @bob-carpenter in #1520 (comment):

It would also be nice to get rid of the ::value using the same trick as the standard library uses for enable_if_t with some parameter pack magic for good measure.

template <bool propto, typename ...Ts>
using include_summand_b = include_summand<propto, Ts...>::value;

Then the usage could go from include_summand<propto, T1, ..., TN>::value to
include_summand_v<propto, T1, ..., TN>.

We settled on using _v because the result is a value, rather than the _t for a type in enable_if_t.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions