C++ Const Correctness Refresher

C++ Const Correctness Refresher

15:10 - 15:30 Thursday 7th April 2022 BST

Beginner

Intermediate

Advanced

Const correctness of C programs is one of the crucial building blocks for reliable and consistent code. This criticality is reflected in the strict recommendations listed in the C Core Guidelines. Unfortunately, in practice, some of the rules are neglected and situations where const correctness should be enforced are often unnoticed. In this short presentation the overview of const correctness concept will be presented along with the real life examples of issues that could be avoided with the help of proper usage of the concept. It will be demonstrated how following the guidelines will encourage better design practices. Special attention will be given to specifics associated with auto type deduction, standard smart pointers and iterators.

image

Vladimir Vishnevskii

Vladimir is a software engineer with more than 17 years of experience applying C for development of complex software systems in areas like distributed systems and networking. Before his recent switch to Intel he was for more than 6 years part of the effort to bring modern C into automotive embedded software development.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.