You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ABI of the libc++ std::string is complex and hasn't been implemented host-side, so the current guest ABI for std::string uses a simple fallback method. It's probably better to first get the size() and the use something like https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite to initialize it.
The text was updated successfully, but these errors were encountered:
I have considered just always allocating the long string variation of libc++ std::string, even when they are smaller.
Implementation details: https://joellaity.com/2020/01/31/string.html
The ABI of the libc++ std::string is complex and hasn't been implemented host-side, so the current guest ABI for std::string uses a simple fallback method. It's probably better to first get the size() and the use something like https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite to initialize it.
The text was updated successfully, but these errors were encountered: