![QUESTION] How to write the binding code for a c++ function that takes char * and return a std::string · Issue #2615 · pybind/pybind11 · GitHub QUESTION] How to write the binding code for a c++ function that takes char * and return a std::string · Issue #2615 · pybind/pybind11 · GitHub](https://user-images.githubusercontent.com/37881189/96821777-782f5480-13dd-11eb-9a10-a26cf1d1600a.png)
QUESTION] How to write the binding code for a c++ function that takes char * and return a std::string · Issue #2615 · pybind/pybind11 · GitHub
![I am not able to get it what it means , "error: cannot convert 'std::string' to 'const char*' " - Complete C++ Course - Coding Blocks Discussion Forum I am not able to get it what it means , "error: cannot convert 'std::string' to 'const char*' " - Complete C++ Course - Coding Blocks Discussion Forum](https://discuss.codingblocks.com/uploads/default/original/2X/5/55ea241bbd28cfb2cf4c5ff6fb29f183b615394c.jpeg)
I am not able to get it what it means , "error: cannot convert 'std::string' to 'const char*' " - Complete C++ Course - Coding Blocks Discussion Forum
![std::string::findより速くなるかもしれない。boost::algorithmのboyer_moore_searchとかknuth_morris_pratt_searchとか - Qiita std::string::findより速くなるかもしれない。boost::algorithmのboyer_moore_searchとかknuth_morris_pratt_searchとか - Qiita](https://qiita-user-contents.imgix.net/https%3A%2F%2Fcdn.qiita.com%2Fassets%2Fpublic%2Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png?ixlib=rb-4.0.0&w=1200&mark64=aHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZ0eHQ9c3RkJTNBJTNBc3RyaW5nJTNBJTNBZmluZCVFMyU4MiU4OCVFMyU4MiU4QSVFOSU4MCU5RiVFMyU4MSU4RiVFMyU4MSVBQSVFMyU4MiU4QiVFMyU4MSU4QiVFMyU4MiU4MiVFMyU4MSU5NyVFMyU4MiU4QyVFMyU4MSVBQSVFMyU4MSU4NCVFMyU4MCU4MmJvb3N0JTNBJTNBYWxnb3JpdGhtJUUzJTgxJUFFYm95ZXJfbW9vcmVfc2VhcmNoJUUzJTgxJ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