Skip to content

Remove std::conditional from List.h

The std::conditional utility is very convenient, but it unfortunately means that the compiler has to evaluate both the true and false types even though one is guaranteed to be thrown out. This is problematic because it requires the compiler to do a lot more work then necessary. It is especially dumb when introducing the conditionals to reduce the number of cases being evaluated, as was much of the case in List.h.

Merge request reports

Loading