J
Joerg Loosen
Hi there!
I recently found this code in a framework class:
class derived : base<derived> {
// ...
}
I. e. a class derived from a template class whose template parameter is
the derived class itself.
I remember vaguely having read something about this construct, but I
cannot recall where. Does this pattern have a name with which I could
try a web search? Or could somebody explain it to me?
Thanks,
Joerg
I recently found this code in a framework class:
class derived : base<derived> {
// ...
}
I. e. a class derived from a template class whose template parameter is
the derived class itself.
I remember vaguely having read something about this construct, but I
cannot recall where. Does this pattern have a name with which I could
try a web search? Or could somebody explain it to me?
Thanks,
Joerg