I have a C++ function that takes one std::string as an argument and a python object that is a buffer. I thought that I could pass the buffer directly and that Boost Python would convert it to a string automatically, but it does not:
Boost.Python.ArgumentError: Python argument types in
mod.decrypt(buffer)
did not match C++ signature:
decrypt(std::string string_to_decrypt)
Is it necessary to write converters for this? I thought it would implicitly convert. Thanks for any advice.