A simple interpretation of the mysterious value categories of C++: lvalues represent objects and rvalues represent values.
Passing by value and by
constreference typically mean the same thing to the caller yet may be chosen in different circumstances, depending on who you ask. Why is writing function parameters harder than it should be in C++? Instead, let's keep it simple.
File input is often mishandled in C++. Find out why conditioning on
eof()might not do what you expect, and learn the correct, idiomatic approach to validating input.
A visual method for identifying and understanding undefined behavior in expressions.
Hear about new articles
Subscribe to the RSS feed with your favourite news feed reader.
- The lvalue/rvalue metaphor
- Need a value? Pass by value
- Don't condition input on
- C++ sequenced-before graphs
- Exceptions, error codes, and assertions in C++
- Don't use
autounless you mean it
- A tour of the C++ standard
- Ambiguous raw pointers
- Marking as deprecated in C++14
Web development articles
Game development articles