TIL that you can use ' to group digits in C++…? Since when is that a thing?
int i = 1'000'000;
Conversation
Notices
-
Embed this notice
root42 (root42@chaos.social)'s status on Wednesday, 02-Oct-2024 19:48:59 JST root42 -
Embed this notice
Peter Krefting (nafmo@social.vivaldi.net)'s status on Wednesday, 02-Oct-2024 19:48:58 JST Peter Krefting @root42 It came in with C++14, so ten years ago.
-
Embed this notice
Peter Krefting (nafmo@social.vivaldi.net)'s status on Wednesday, 02-Oct-2024 19:59:39 JST Peter Krefting @root42 Embedded compilers are often trailing; we only just recently upgraded to a C++17 compiler at $DAYJOB. Can't get much further with the current hardware we're targetting as the CPU isn't supported by newer GCC or GLibC...
And there's also the thing about being mentally stuck to the version of C++ one learnt. I learnt C++ back in the late 1990s, and I still have some old code written from before namespaces that I just tacked "use namespace std;" on to be able to compile... 🙂
-
Embed this notice
root42 (root42@chaos.social)'s status on Wednesday, 02-Oct-2024 19:59:41 JST root42 @nafmo …and the car industry is still on C++11 for the most part. No wonder I miss out on all the good stuff.
-
Embed this notice
Peter Krefting (nafmo@social.vivaldi.net)'s status on Wednesday, 02-Oct-2024 20:22:12 JST Peter Krefting @root42 Nothing says being an active developer as good as publishing unfinished beta versions on GitHub…
-
Embed this notice
root42 (root42@chaos.social)'s status on Wednesday, 02-Oct-2024 20:22:14 JST root42 @nafmo haha! Yes I know the feeling…
-
Embed this notice