Hy, I am crafting some meta-programming library that could help to construct complex objects from simple ad-mixture classes through the inheritance.
For instance I got some mechanisms those produce a set of template classes, each representing a single property.
I`ve came to a final construction procedure that looks like this:
class Car : public Position< Size< Color< BaseObj<Car> > > > {/*...*/};
and i quite don't like it.
(BaseObj is always the most inner template in a sequence)
I tried to make some processing template to be able to write it like this:
class Car : public Proc< Position, Size, Color, Car > {/*...*/};
but got no success.
Is it possible to make such a template?
Are there any other more readable semantics those could have the same effect as a sequence of such nested templates?