My immediate thought is that there is some conflict between the string types in the implementation of
ConnectionInfo
and your piece of problem code.
I shall presume they are both
std::string
. If the
ConnectionInfo
implementation is provided as a binary (either static or dynamically linked) there may be a conflict with compiler settings or std lib implementations used when building your code.
If this is the case, then the error really lies with the provider of the library, as it is generally a bad idea to put anything but fundamental types on a library interface, as the stl standard does not stipulate
binary compatibility between implementations[
^].
Sadly, even debug and release versions of the same implementation can cause problems on library interfaces.