Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Strange result from ptrdiff_t and size_t

Thread Tools

Strange result from ptrdiff_t and size_t

red floyd
Posts: n/a
Kai-Uwe Bux wrote:

> Don't focus on the footnote. The normative clause covers it all because
> arithmetic mod 2^n does not care either way. All arithmetic operations with
> the exception of division by 0 are well-defined for unsigned interger types
> by []. (That's why I like them much better than those signed types
> that make virtually no guarantees whatsoever.)

You know, there should be a note in 5/5 to refer to
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
reinterpret_cast<std::size_t>(p) and reinterpret_cast<std::size_t&>() Alex Vinokur C++ 1 02-06-2011 07:48 AM
Casting from const pair<const unsigned char*, size_t>* to constpair<unsigned char*, size_t>* Alex Vinokur C++ 9 10-13-2008 05:05 PM
Plauger, size_t and ptrdiff_t C Programming 26 03-03-2006 02:01 AM
why ::size_t and ::ptrdiff_t aren't undefined in <cstddef> C++ 9 10-25-2005 05:09 PM
When should I use ptrdiff_t and size_t instead of int and unsigned int? C++ 6 10-19-2005 01:42 PM