<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>関数void f(int a) {}のパラメータaのように、実行時に使用しない可能性のある識別子は、コンパイル時に警告が出力されることがあります。 使用しないことが意図したものであることをコンパイラに伝えて警告を抑制するために、C++1zから[[maybe_unused]]属性が導入されます。 void f([[maybe_unused]] int a) {} この属性は、以下の要素に対して指定できます： クラスの宣言 型の別名宣言 変数の宣言 非静的メンバ変数の宣言 関数の宣言 列挙型の宣言 列挙子 この属性は、以下のような状況で有効活用できるでしょう： シリアライズのバージョンパラメータ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F2016%2F10%2F07%2F172726&quot; title=&quot;C++1z 使用しない可能性のある変数に対する警告を抑制するための[[maybe_unused]]属性 - Faith and Brave - C++で遊ぼう&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-10-07 17:27:26</published>
  <title>C++1z 使用しない可能性のある変数に対する警告を抑制するための[[maybe_unused]]属性</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/2016/10/07/172726</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
