Closed JaiganeshKumaran closed 1 year ago
Adding B as a separate template parameter would make it required, however in the case you're composing a class that's external to your code (such is the case in XAML), you do not have access to the implementation class for the base, so you wouldn't be able to pass it as B. I...
does end up providing B when you do need to pass it, so it isn't really an issue.
@sylveon Don't I need to pass AttachedShadowBase as B to AttachedDropShadow?
Yes, and you can still do that even with just I...
Version
2.0.230524.4
Summary
I have a derived class that derives from a composable base class. In this case, RuntimeClass_base has two required template parameters (D for the derived, and B for the implementation base). However, the alias it writes RuntimeClassT only takes D as a required template parameter.
Reproducible example
Expected behavior
AttachedDropShadowT should have a B parameter.
Actual behavior
AttachedDropShadowT only has D and (variadic) I template parameters.
Additional comments
No response