Correctly initialize std::mbstate_t.
mbstate_t is an opaque type that is often a union or a struct, so setting it directly to 0 is incorrect and causes build failures with some compilers such as clang.
Loading
Please sign in to comment
mbstate_t is an opaque type that is often a union or a struct, so setting it directly to 0 is incorrect and causes build failures with some compilers such as clang.