diff options
Diffstat (limited to 'src/development/c++.md')
-rw-r--r-- | src/development/c++.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/development/c++.md b/src/development/c++.md new file mode 100644 index 0000000..d9fbbda --- /dev/null +++ b/src/development/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)::_; +``` + |