🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

adopting to C++17

Started by
4 comments, last by pcmaster 4 years, 9 months ago

Hi, for context, i have been working 17 years professionally as software engineer, hobbyist and/or freelance game developer and ive been using C++ (along with other languages) since.

BUT i have been using the old school C++98 standard mostly out of practicality and also stuborness,  i have used boost 10 years ago back then when most of its modules are not yet integrated to standard C++.
now, I want to try and get my hands with the latest one particularly C++17, Is there a definitive guide on what are the difference between 98 and the latest one and how an old school guy like me can adopt easily to the new one?

Cant get the correct keywords for google search aswel,

Thank you in advance!

Advertisement

You could look up C++03, C++11, C++14 and C++17 and learn what they changed from the original C++98. Focus on C++11, since it's the one that changed things the most.

As you read about new features (unique_ptr, multithreading, lambdas, range-based for loops...), writing lots of little programs to test your understanding is very useful.

Alternatively, you could try to learn C++17 as an entirely new language.

Then again, you could just continue to write your programs, and use more modern features of C++ only when you need them.

I recommend a combination of all of the above.

Here are links to get you started:

https://www.learncpp.com/cpp-tutorial/b-1-introduction-to-c11/

https://www.learncpp.com/cpp-tutorial/b-2-introduction-to-c14/

https://www.learncpp.com/cpp-tutorial/b-3-introduction-to-c17/

https://en.cppreference.com/w/

The entire standard library docs, which includes rich notations on which parts were introduced when, and which parts were deprecated when.

And watch lots of CppCon talks on YouTube. Especially the ones by Jason Turner, Andrei Alexandrescu, and all the guys who work at Facebook. This video is an amazing eye-opener about the C++ mantra "you don't pay for what you don't use"...

 

RIP GameDev.net: launched 2 unusably-broken forum engines in as many years, and now has ceased operating as a forum at all, happy to remain naught but an advertising platform with an attached social media presense, headed by a staff who by their own admission have no idea what their userbase wants or expects.Here's to the good times; shame they exist in the past.

When mentioning Jason Turner, he's got a series of short videos on what C++98, 03 (I can't seem to find this one), 11 and 14 added to the previous versions, so totally look at those to get a quick high level picture. The rest of his videos go in depth on other 11, 14, 17 or 20 features.

 

 

This topic is closed to new replies.

Advertisement