points
If you mean templates, a kind of solved problem since C++17 with static_assert and enable_if, moreso in C++20 with concepts.