callable_traits icon indicating copy to clipboard operation
callable_traits copied to clipboard

Prefer static constexpr bool over std::true_type or std::false_type

Open jonesmz opened this issue 3 months ago • 0 comments

Over using std::true_type or std::false_type.

While the std::integral_constant derivatives aren't particularly heavy weight, they still add up in a codebase that sees them used in many places. Directly using static constexpr bool variables should reduce the number of template instantiations required, reducing build times.

jonesmz avatar Sep 25 '25 21:09 jonesmz