Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7032057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:53:05+00:00 2026-05-28T00:53:05+00:00

I find this atrocious: std::numeric_limits<int>::max() And really wish I could just write this: int::max

  • 0

I find this atrocious:

std::numeric_limits<int>::max()

And really wish I could just write this:

int::max

Yes, there is INT_MAX and friends. But sometimes you are dealing with something like streamsize, which is a synonym for an unspecified built-in, so you don’t know whether you should use INT_MAX or LONG_MAX or whatever. Is there a technical limitation that prevents something like int::max from being put into the language? Or is it just that nobody but me is interested in it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:53:05+00:00Added an answer on May 28, 2026 at 12:53 am

    Primitive types are not class types, so they don’t have static members, that’s it.

    If you make them class types, you are changing the foundations of the language (although thinking about it it wouldn’t be such a problem for compatibility reasons, more like some headaches for the standard guys to figure out exactly what members to add to them).

    But more importantly, I think that nobody but you is interested in it 🙂 ; personally I don’t find numeric_limits so atrocious (actually, it’s quite C++-ish – although many can argue that often what is C++-ish looks atrocious 😛 ).


    All in all, I’d say that this is the usual “every feature starts with minus 100 points” point; the article talks about C#, but it’s even more relevant for C++, that has already tons of language features and subtleties, a complex standard and many compiler vendors that can put their vetoes:

    One way to do that is through the concept of “minus 100 points”. Every feature starts out in the hole by 100 points, which means that it has to have a significant net positive effect on the overall package for it to make it into the language. Some features are okay features for a language to have, they just aren’t quite good enough to make it into the language.

    Even if the proposal were carefully prepared by someone else, it would still take time for the standard committee to examine and discuss it, and it would probably be rejected because it would be a duplication of stuff that is already possible without problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I find this really strange..could someone give an explanation? abstract class UIController{ public static
I could not really find this in the documentation. I'm writing some unit tests
I couldn't really find this in Rails documentation but it seems like 'mattr_accessor' is
I could probably find this out from somewhere else but thought it would be
I find this design pattern comes up a lot: try: year = int(request.GET['year']) except:
Sorry I could not find this. $('div#loader').slideDown(fast).delay(1.5); Does not word as expected, I want
I didn't find this in the documentation . Should I just make the close
I find this Jquery week calendar plugin pretty useful !. I am just wondering
You may find this weird, actually very weird, but is the following possible? just
I couldn't find this option in the settings, nor could I find a plugin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.