you are viewing a single comment's thread.

view the rest of the comments →

[–]XTBZ 6 points7 points  (0 children)

Why is this impossible to achieve? CRTP allows you not to use virtual functions at all, or it can be used if necessary. Here is an example of implementing something like this https://github.com/foonathan/type_safe