2 ms·
In c++, I would write a single template for both paths, and make the compiler generate two functions for each case, so the ifs and checks are automatically remo
by goyel 2y ago
In c++, I would write a single template for both paths, and make the compiler generate two functions for each case, so the ifs and checks are automatically removed. Then I would call each function with a parameter like "bool boundary". It's more maintainable