This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD status.

500. do_length cannot be implemented correctly

Section: [locale.codecvt.byname] Status: NAD Submitter: Krzysztof Żelechowski Opened: 2005-05-24 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [locale.codecvt.byname].

View all issues with NAD status.


  1. codecvt::do_length is of type int;
  2. it is assumed to be sort-of returning from_next - from of type ptrdiff_t;
  3. ptrdiff_t cannot be cast to an int without data loss.


Proposed resolution: