GridPACK C++ code is aging. Some C++ constructs that were acceptable when coding began have been deprecated and not supported by some newer compilers. I have trouble building GridPACK with CLang 16 and 18, which strictly follow C++17. Some things that need to change:
- use of
std::auto_ptr should be replaced with std::unique_ptr
- use of
std::unary_function and std::binary_function is not needed
In addition, it might be appropriate to migrate code away from Boost for those constructs that are now standard, e.g. shared_ptr.
GridPACK C++ code is aging. Some C++ constructs that were acceptable when coding began have been deprecated and not supported by some newer compilers. I have trouble building GridPACK with CLang 16 and 18, which strictly follow C++17. Some things that need to change:
std::auto_ptrshould be replaced withstd::unique_ptrstd::unary_functionandstd::binary_functionis not neededIn addition, it might be appropriate to migrate code away from Boost for those constructs that are now standard, e.g.
shared_ptr.