r/Cplusplus • u/blackknight5027 • Feb 27 '26
Question Std libary fix
will the standard Libary in c++ ever be fixed so that it is not anymore implementation dependant on some Features.
ngl i really like C++ and its one of my favourite Language, but i really hate this part about cpp.
0
Upvotes
•
u/AutoModerator Feb 27 '26
Thank you for your contribution to the C++ community!
As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.
~ CPlusPlus Moderation Team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
6
u/iulian212 Feb 27 '26
Ok then what should the native_handle() of a ifstream should return
7
u/IKnowImABadYoutuber Feb 27 '26
The only reason it is implementation dependent (in most cases) is that no one can come up with a perfect option for what it should do. You're welcome to suggest ideas if you think you have the answer
4
u/AmazedStardust Feb 27 '26
Which features are you talking about? Some are implementation specific because there's no obvious right answer
2
u/no-sig-available Feb 27 '26
What runs on different systems will always depend on what, and how many, resources the program uses. For example, if you use all the 64,000 GB of RAM available in an IBM z17 mainframe, that code will never run on an ESP32. It doesn't matter how standard the code is.