@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 ?
@Feufochmar std::string and an in house lib