Skip to content

Commit 3ea7845

Browse files
committed
update
1 parent f34d74f commit 3ea7845

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

docs/articles/it-does-not-compile.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,28 @@ int main()
3939
{
4040
Func();
4141
}
42-
```
42+
```
43+
44+
## 関数のオーバーロード
45+
46+
```C++
47+
#include <iostream>
48+
49+
using T = int&;
50+
51+
void f(T&)
52+
{
53+
std::cout << "A\n";
54+
}
55+
56+
void f(const T&)
57+
{
58+
std::cout << "B\n";
59+
}
60+
61+
int main()
62+
{
63+
int x;
64+
f(x);
65+
}
66+
```

docs/contribution/contributors.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ C++ の歩き方 Web サイトの改善、情報拡充に協力してくれた
6060
- [国内の勉強会 情報提供](https://github.com/cppmap/cppmap.docs/pull/25)
6161
- [@wx257osn2](https://twitter.com/wx257osn2) さん
6262
- [オンラインコンパイラ 情報提供](https://github.com/cppmap/cppmap.docs/pull/18)
63+
- [@yaito3014](https://twitter.com/yaito3014) さん
64+
- [なぜかコンパイルできない 情報提供](https://github.com/cppmap/cppmap.docs/issues/9#issuecomment-792238518)
6365
- [@yohhoy](https://twitter.com/yohhoy) さん
6466
- [記事改善案 提供](https://twitter.com/yohhoy/status/1106950996192747521)
6567
- [C++23 以降に向けた提案 情報提供](https://github.com/cppmap/cppmap.docs/pull/32)

0 commit comments

Comments
 (0)