Re:My favourite C++ footgun
by layer8 on Wednesday June 23, 2021 @11:29AM
(#27605644)
That doesn’t compose in a class hierarchy, though.
[ Parent
| on HN ]
That's a good point... You might be able to work around that using a template function factory e.g. `make_foobar<ChildrenFooBar>()`. I'm not sure what's a good pattern here, I don't write much C++.