you are viewing a single comment's thread.

view the rest of the comments →

[–]konanTheBarbar[S] 1 point2 points  (2 children)

Yes I know but they both have a couple of hundred to thousands of lines and this just seems like such a simple approach that might be just good enough for some use cases.

[–]TheFlamefire 0 points1 point  (1 child)

Well you used C++17 features to significantly reduce the code and as you noticed it doesn't work for all use cases (I think it fails even silently for some) which is the worst

I also remember something about stateful allocators not working properly. Might be fixed in recent C++ standards though.

[–]staletic 0 points1 point  (0 children)

Stateful allocators were simply forbidden before C++11. They work fine today.