aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/SUMMARY.md1
-rw-r--r--src/c++.md12
2 files changed, 13 insertions, 0 deletions
diff --git a/src/SUMMARY.md b/src/SUMMARY.md
index 7d0acbd..8859b11 100644
--- a/src/SUMMARY.md
+++ b/src/SUMMARY.md
@@ -22,3 +22,4 @@
- [objdump](./objdump.md)
- [nm](./nm.md)
- [c++filt](./c++filt.md)
+- [c++](./c++.md)
diff --git a/src/c++.md b/src/c++.md
new file mode 100644
index 0000000..d9fbbda
--- /dev/null
+++ b/src/c++.md
@@ -0,0 +1,12 @@
+# c++
+
+## Type deduction
+
+Force compile error to see what `auto` is deduced to.
+```cpp
+auto foo = bar();
+
+// force compile error
+typename decltype(foo)::_;
+```
+