Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
C++ Casting - Part 2 - What could go wrong? Use -Wall cmp_greater (C++20) | Modern Cpp Series Ep. 92
Play lesson

The C++ Programming Language - C++ Casting - Part 2 - What could go wrong? Use -Wall cmp_greater (C++20) | Modern Cpp Series Ep. 92

4.0 (5)
38 learners

What you'll learn

This course includes

  • 68.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Full Transcript

►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel/UCA64pZbN5Mz5NxC3SO4qpDg/join ►Lesson Description: In this lesson I talk about one of the things we often have to keep in mind when comparing data types, signed versus unsigned comparison. The actual bit representation of an unsigned number is often using a twos complement representation, thus the values may appear 'bigger' at the bit level than what we would expect as programmers. In order to fix this, we can use -Wall to warn us of such conversions, or otherwise use a C++ 20 feature like std::cmp_greater in the utility header (and associated comparisons) to write more stable code. ►YouTube Channel: https://www.youtube.com/c/MikeShah ►Please like and subscribe to help the channel!

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere