The c++ library implementation on MacOS is broken, it does not allow you to correctly use points to members of std::string. We work around this by not directly using member pointers and instead wrapping the method calls with our own functions.