Closed stephenberry closed 3 years ago
@stephenberry thanks for contributing!
Is the new, non-deprecated, allocator code backward compatible with pre c++17 compilers? Or: what is the earliest c++YY that this code with work with?
In its original incarnation, st_tree
was compilable back to c++98, but I believe the most recent PR I merged pushed that up to c++11, so I'm mostly just trying to keep track of what the requirements are.
Good question, I should have noted that these changes use C++11 features (e.g. std::allocator_traits). So, the code already used C++11 features and this should maintain that compatibility.
unit tests are building and passing with cmake -D CMAKE_CXX_STANDARD=11 .
Also 14
, 17
and 20
LGTM, will merge.
Thanks @stephenberry !
You're welcome. Thanks for such a great tree library!
Fix to build once again in C++20
rebind was deprecated in C++17 and removed in C++20 construct, destroy, and deallocate were deprecated and removed likewise and now the proper solution is to use std::allocator_traits
I also added .DS_store to the .gitignore as it is generated on my Mac