Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pybind11 for C++14/C++17

Does pybind11 work for C++14 and C++17 seamlessly ?

I'm planning to use Boost.python for my project which is currently in C++11. In future I may have to upgrade to C++14 or C++17. So I wanted to understand what will be the right choice here - boost.python ot pybind11.

From pybind11 doc, it says - "seamless operability between C++11 and Python" So bit confused

like image 768
Vinu Avatar asked Apr 18 '26 09:04

Vinu


1 Answers

Yes, it works with C++11/14/17/20, see corresponding section in docs.

By default, pybind11 will compile modules with the compiler default or the minimum standard required by pybind11, whichever is higher.

like image 64
Sergei Avatar answered Apr 20 '26 21:04

Sergei



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!