If and hos would you simplify this #cpp code? The code duplication is bugging me.
```
if constexpr (foo<T>) {
obj.disableX();
} else if (bar(t)) {
obj.disableX();
} else {
obj.setX(t.x);
}
```
You need an `if constexpr` for the first one, because if `foo<T>` is true, `.x` doesn't exist […]
fosstodon.org
Original post on fosstodon.org