No, there is no way to replace std::string
with vstring
, it's meant as an alternative string type, not a drop-in replacement for std::string
Since GCC 5.1 the library ships with two implementations of std::string
and for any given translation unit you can choose which to use via the _GLIBCXX_USE_CXX11_ABI
macro. The two string types have different mangled names, so are not link-compatible.
See Dual ABI for more details.