c++ - How to replace std::string with vstring? -
I have recently learned that for some years the library has been known as
vstring in LibasteDis ++ (which is also known as
versa_string ), which provides the same functionality as std :: string , but apparently conforms to the C ++ standard. I have tried to use vstring as the replacement for std :: string , but I have not found any easy way to do this. With std :: string with vstring , is there an easy way to change without changing the libstdc ++ sources? I am fine with the place. All the use of std :: string inside my code by the nickname according to the following code, however, the problem with this approach is , That std :: string is also used internally in some places, e.g. In std :: ostringstream it means, statement std :: ostringstream os; My: string s = os.str (); no longer works namespace my {#ifdef __GLIBCXX__ string = __gnu_cxx :: __ vstring; #else string = std :: string; #endif}
No, there is no way to change std :: With std :: string with vstring , this is an optional string type, one for GPC Drop-in replacement does not have 5.1 library with two implementation of std :: string and for any translation unit, you can choose which code is _GLIBCXX_USE_CXX11_ABI Using the macro is two strings. Cars are different wrong name, so the links are not compatible. See for more information.
Comments
Post a Comment