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.
Description
This was suggested by @bob-carpenter in #1520 (comment):
It would also be nice to get rid of the
::valueusing the same trick as the standard library uses forenable_if_twith some parameter pack magic for good measure.Then the usage could go from
include_summand<propto, T1, ..., TN>::valuetoinclude_summand_v<propto, T1, ..., TN>.We settled on using
_vbecause the result is a value, rather than the_tfor a type inenable_if_t.