On 07/10/2016 10:31 PM, Lodovico Giaretta wrote:
That said, if you want char[] -> string or wchar[] -> wstring you can
use assumeUnique, which casts a mutable array to an immutable one.

After having ensured that the array is actually unique. That is, there must not be any other references to it or into it, or you're going to run into undefined behavior.

Reply via email to