pybind11 icon indicating copy to clipboard operation
pybind11 copied to clipboard

Use if constexpr

Open cyyever opened this issue 1 year ago • 1 comments

Description

Add "if constexpr" support.

cyyever avatar Sep 29 '24 14:09 cyyever

I'd rather not make these changes, but I'm open to other opinions.

if constexpr is a game changer as an alternative to SFINAE acrobatics.

But AFAIK it does very little or nothing for optimization purposes.

My opinion in this particular case: some extra code noise, no clear benefit.

rwgk avatar Sep 29 '24 18:09 rwgk