From 77d1d07fbc1b8e27125d5d727e1551e9aeaac6c2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 17 Mar 2023 01:56:28 +0900 Subject: fix(content): fix XML notations --- .../cpp-you-can-use-keywords-in-attributes.xml | 38 ++++++++-------------- 1 file changed, 13 insertions(+), 25 deletions(-) (limited to 'content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.xml') diff --git a/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.xml b/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.xml index f212b7c..4ee22fe 100644 --- a/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.xml +++ b/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.xml @@ -53,15 +53,15 @@ std::cout << "Hello, World!" << std::endl;
- the identifiers that are keywords cannot be used for other purposes; + the identifiers that are keywords cannot be used for other purposes; - The only place they can be used as non-keywords is in an - attribute-token. (e.g. [[private]] is a valid attribute) (since C++11) - - - - + The only place they can be used as non-keywords is in an + attribute-token. (e.g. [[private]] is a valid attribute) (since C++11) + + + +
キーワードでも属性として指定する場合は非キーワードとして使えるらしい。 実際にやってみる。 @@ -91,24 +91,12 @@ std::cout << "Hello, World!" << std::endl; (参考: 同ドラフト) - - <%{ - - - %>} - - - <:[ - - - :>] - - - %:# - - - %:%:## - + <%{ + %>} + <:[ + :>] + %:# + %:%:## identifier の構文上の要件を満たさないような代替トークン」はこれらが当てはまると思われる。 -- cgit v1.2.3-70-g09d2