Topic: Defect report: 22.2.1.5.2 do_length cannot be implemented correctly


Author: Krzysztof =?UNKNOWN?Q?=AFelechowski?= <yecril@bluebottle.com>
Date: Tue, 24 May 2005 13:35:56 +0000 (UTC)
Raw View
[ Note: Forwarded to C++ Committee. -sdc ]

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.
Contradiction.



[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]