回答編集履歴

2

fix

2017/11/15 15:36

投稿

yohhoy
yohhoy

スコア6191

test CHANGED
@@ -20,4 +20,4 @@
20
20
 
21
21
 
22
22
 
23
- 対応している処理系あるんでしょうかね?私は知りません。
23
+ [GCCは対応済み](https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html)、[Clang未対応](https://clang.llvm.org/cxx_status.html)のようす。(MSVCやICCは不明ですが多分未対応でしょう

1

appendix

2017/11/15 15:36

投稿

yohhoy
yohhoy

スコア6191

test CHANGED
@@ -9,3 +9,15 @@
9
9
 
10
10
 
11
11
  それ以降は他回答者の方と同じです。マクロ名(プリプロセッサで処理)とそれ以外の名前(コンパイラで処理)は明確に使い分けることを強くお勧めします。
12
+
13
+
14
+
15
+ ----
16
+
17
+ 一応、プログラミング言語C++の実験的な拡張「Fundamentals TS v2」の中に所望の機能に近いものは存在します。
18
+
19
+ [http://en.cppreference.com/w/cpp/experimental/source_location](http://en.cppreference.com/w/cpp/experimental/source_location)
20
+
21
+
22
+
23
+ 対応している処理系はあるんでしょうかね?私は知りません。