C++ Logo


Advanced search

Re: [SG16-Unicode] Replacement for codecvt

From: Lyberta <lyberta_at_[hidden]>
Date: Mon, 02 Sep 2019 10:06:00 +0000
Corentin Jabot:
> The real problem is system apis (both posix and win32 and all existing C
> code) - null termination in C++ exist for compatibility with that and it
> seems unlikely that we would manage to convince win32 or posix people
> to add (pointer size) functions everywhere - it's a lot of functions

I think this is the only way forward.

Take char8_t* + size_t or make a struct with those fields, that's the
only sane way for C.

Received on 2019-09-02 12:07:03