aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-12 15:12:10 +0900
committernsfisis <nsfisis@gmail.com>2023-03-12 15:12:10 +0900
commitde13d68cddef5bb321469bcffb868f27ddd5390e (patch)
tree3183bb2bc8b2ad7d34b6953e6a248747239f0afa /public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html
parent5b49e6bca39d7cd3b98db8b826dc597d9f758a26 (diff)
downloadblog.nsfisis.dev-de13d68cddef5bb321469bcffb868f27ddd5390e.tar.gz
blog.nsfisis.dev-de13d68cddef5bb321469bcffb868f27ddd5390e.tar.zst
blog.nsfisis.dev-de13d68cddef5bb321469bcffb868f27ddd5390e.zip
style: add .highlight class to pre tag
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.html4
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 &lt;iostream&gt;
[[alignas]] [[alignof]] [[and]] [[and_eq]] [[asm]] [[auto]] [[bitand]]
@@ -126,7 +126,7 @@ std::cout &lt;&lt; &quot;Hello, World!&quot; &lt;&lt; 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>