Today I learned that you can't pass an STL object by copy to a C++ shared library.
No errors occur, you just get an object sized chunk of 0. (Although I assume it's undefined, so you can't guarantee on 0)
I would much prefer an error than silent semi-failure.
Haven't tested pass by ref.
@samathy Which object ? And which library ? Passing by copy should work fine normally.
@samathy Are you using a binary library, or do you compile it with your program ? If you are using a binary library, is it compiled with the same version of the standard library you are using ?