diff options
Diffstat (limited to 'public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html')
| -rw-r--r-- | public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
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 479520e..ae44da9 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,7 +56,7 @@ タイトル落ち。まずはこのコードを見て欲しい。 </p> - <pre language="cpp" linenumbering="unnumbered"> + <pre class="highlight" language="cpp" linenumbering="unnumbered"> <code>#include <iostream> [[alignas]] [[alignof]] [[and]] [[and_eq]] [[asm]] [[auto]] [[bitand]] @@ -126,7 +126,7 @@ std::cout << "Hello, World!" << std::endl; 上のコードでは<code>[[using]]</code>をコメントアウトしているが、これは<code>using</code>キーワードのみ属性構文の中で意味を持つからであり、このコメントアウトを外すとコンパイルに失敗する。 </p> - <pre language="cpp" linenumbering="unnumbered"> + <pre class="highlight" language="cpp" linenumbering="unnumbered"> <code>// using の例 [[using foo: attr1, attr2]] int x; // [[foo::attr1, foo::attr2]] の糖衣構文</code> </pre> |
