Open yuxianch opened 3 years ago
Fail to compile test/back_reference.cpp with C++20 since std::auto_ptr is removed in c++17. https://github.com/boostorg/python/blob/cbd2d9f033c61d29d0a1df14951f4ec91e7d05cd/test/back_reference.cpp#L102
It should be easy to adapt this test to use e.g. std::unique_ptr. The tricky part is to only conditionally do this substitution, to support pre-C++11 compilers as well as C++17 and beyond.
std::unique_ptr
Fail to compile test/back_reference.cpp with C++20 since std::auto_ptr is removed in c++17. https://github.com/boostorg/python/blob/cbd2d9f033c61d29d0a1df14951f4ec91e7d05cd/test/back_reference.cpp#L102