From 98682c7a8792e7e79e487fea5024d25cee5aa310 Mon Sep 17 00:00:00 2001
From: nsfisis contained unnecessary whitespaces inside it
---
.../cpp-you-can-use-keywords-in-attributes/index.html | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
(limited to 'public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes')
diff --git a/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html b/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html
index ae44da9..ed91b45 100644
--- a/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html
+++ b/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html
@@ -56,8 +56,7 @@
タイトル落ち。まずはこのコードを見て欲しい。
- #include <iostream>
+ #include <iostream>
[[alignas]] [[alignof]] [[and]] [[and_eq]] [[asm]] [[auto]] [[bitand]]
[[bitor]] [[bool]] [[break]] [[case]] [[catch]] [[char]] [[char16_t]]
@@ -75,8 +74,7 @@
// [[using]]
int main() {
std::cout << "Hello, World!" << std::endl;
-}
-
+}
@@ -126,10 +124,8 @@ std::cout << "Hello, World!" << std::endl; 上のコードでは
-[[using]]をコメントアウトしているが、これはusingキーワードのみ属性構文の中で意味を持つからであり、このコメントアウトを外すとコンパイルに失敗する。-+// using の例 -[[using foo: attr1, attr2]] int x; // [[foo::attr1, foo::attr2]] の糖衣構文-// using の例 +[[using foo: attr1, attr2]] int x; // [[foo::attr1, foo::attr2]] の糖衣構文C++17 の仕様も見てみる (正確には標準化前のドラフト)。 -- cgit v1.2.3-70-g09d2