Closed DBJDBJ closed 3 years ago
I disagree. Declaring your named type like this seems like a valid strategy to me:
using namespace fluent;
struct MyType : public NamedType<int, Addable, Comparable> {
using NamedType<int, Addable, Comparable>::NamedType;
// Potentially add other, special capabilities
};
It also has the bonus of shortening your compiler's error messages if you used a lot of "skills".
Huh? What is the connection with having or not having final
?
I'm not quite sure what you're asking, but marking the NamedType class as final would mean that the above example code fails to compile.
I might be so bold, as to suggest this...
Little optimization and big, clear message from interface author:
Regards ...