boostorg / python

Boost.org python module
http://boostorg.github.io/python
Boost Software License 1.0
468 stars 201 forks source link

Support of c++17 and c++20 #348

Open yuxianch opened 3 years ago

yuxianch commented 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

stefanseefeld commented 3 years ago

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.