Talk:Limits.h

From Wikipedia, the free encyclopedia

This article is supported by the Wikipedia:WikiProject C++. Please visit the project page for more details on the project.

[edit] size of ints

Aren't the size of ints specific to the implementation or architecture? In my linux limits.h I have:

/* Minimum and maximum values a `signed int' can hold.  */
#  define INT_MIN       (-INT_MAX - 1)
#  define INT_MAX       2147483647

/* Maximum value an `unsigned int' can hold.  (Minimum is 0.)  */
#  define UINT_MAX      4294967295U

Shouldn't we note something about this? The current page says they're 16 bit. Krappie (talk) 18:36, 19 November 2007 (UTC)

Pay more attention to the explanatory text: "The magnitude of this column is the minimum magnitude for this constant." --tcsetattr (talk / contribs) 21:09, 19 November 2007 (UTC)

[edit] How can we stop the parade of ignorami "fixing" the minimum values

Even with an explanatory note below the table, still happens. Would it be too much to put a <!-- comment --> next to each individual number telling future editors to get a clue? --tcsetattr (talk / contribs) 21:26, 10 December 2007 (UTC)

I added a new column for "typical values", which should clarify the difference between what the standard says and what's typically seen in implementations. Redquark (talk) 16:54, 11 December 2007 (UTC)