Skip to content

Commit 76e3861

Browse files
April 2022 - Update 3
Translation Units (sections 1-8): - Refactored description flow - Many improvements and clarifications - Several typos fixed - const/constexpr does not imply static - template variables have external linkage even if specialized
1 parent d1fbd64 commit 76e3861

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

10.Translation_Units.pdf

-1000 KB
Binary file not shown.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,11 @@ If you enjoy the course or you find it useful, please add a **Star**
120120

121121
* **Basic Concepts**: Translation unit, Local and global scope, Linkage
122122
* **Storage Class and Duration**: Storage duration, Storage class, `static` and `extern` keywords, Internal/External linkage examples, Linkage of `const` and `constexpr`, Static Initialization Order Fiasco
123-
* **Dealing with Multiple Translation Units**: One Definition Rule (ODR), `inline` functions/variables, Class in multiple translation units, Global variable issues
124-
* **Function Template**
125-
* **Class Template**
126-
* **ORD and Undefined Behavior**
123+
* **Dealing with Multiple Translation Units**: Class in multiple translation units
124+
* **One Definition Rule (ODR)**: Global variable issues,`inline` functions/variables
125+
* **Function Template**: Cases, `extern` keyword
126+
* **Class Template**: Cases, `extern` keyword
127+
* **ODR and Undefined Behavior**
127128
* **`#include` Issues**: Forward declaration, Include guard, Circular dependencies, Common linking errors
128129
* **Namespace**: Namespace functions vs. `static` methods, Namespace alias, Anonymous namespace, `inline` namespace
129130
* **How to Compile**: Compile strategies, Deal with libraries, Build static/dynamic libraries, Find dynamic library dependencies, Analyze object/executable symbols

0 commit comments

Comments
 (0)