Talk #575
const-correctness in C++
Start date:
2014-04-30
Due date:
2015-04-01
% Done:
100%
Estimated time:
Talk Author(s):
Presenter:
Description
The const keyword (and related facilities, such as mutable and const_cast) is one of the things in C++ that look easy and straightforward. However, once you take a deeper look, the feature may appear confusing or even counterproductive. (The C++ FAQ recommends to sit down and ensure that no "sharp implements [are] nearby" before it explains the core issue.)
This talk will present a thorough introduction of the syntax and semantics of const. This will ultimately lead to the question of the intended use of const. The second part of the talk therefore explains how const is used correctly, how this leads to const-correct interfaces, and why this improves maintainability and reduces coding errors.
Files
Updated by Kretz, Matthias about 9 years ago
- Description updated (diff)
- Due date set to 2015-04-01
- Assignee set to Kretz, Matthias
Updated by Kretz, Matthias about 9 years ago
- File const-correctness_in_C++.pdf const-correctness_in_C++.pdf added
- File const-correctness_in_C++_handout.pdf const-correctness_in_C++_handout.pdf added
- Subject changed from const-correctness to const-correctness in C++
- Status changed from New to Presented
- % Done changed from 0 to 100