Last week, I was wrapping some C++ code for a customer and I was surprised that my code did not work properly. I'm not a C++ programmer and thus this error might have been a typical gotcha but still this was a very surprising behavior.
The code in question was:
<c>void my_routine (CppClass my_obj, int buffer_count, char * buffer) { const char * l_cstr = my_obj->getName().c_str();


