<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomo-wait-for-it-yuki</author_name>
  <author_url>https://blog.hatena.ne.jp/tomo-wait-for-it-yuki/</author_url>
  <blog_title>Nature Engineering Blog</blog_title>
  <blog_url>https://engineering.nature.global/</blog_url>
  <categories>
    <anon>Nature</anon>
    <anon>C++</anon>
    <anon>clang</anon>
  </categories>
  <description>ファームウェアエンジニアの中林です。たまにはコンパイラの謎挙動に苦しんだ一幕を取り上げるのも一興、ということで昨日出会ったコンパイルエラーの紹介です。 多分この issue です*1。 助けて詳しい人！ github.com 事の発端 何度か当ブログでも紹介している通り、C言語で書かれた Nature Remo ファームウェアのユニットテストは C++ で書いています。 基本的には C++ の高機能なので C でテストを書くより快適です。 一方で C では当然のようにできるけど、C++ ではできないこともあります。 その1つが指示付き初期化です (C++20 から一部仕様に入りました) 。 指…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fengineering.nature.global%2Fentry%2Fclang-template-anonymous-struct&quot; title=&quot;【トリビア】clang++ に template と無名構造体の指示付き初期化を投げ込むとコンパイルエラーになる！ - Nature Engineering Blog&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/153216657/165425705348297</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-27 16:15:14</published>
  <title>【トリビア】clang++ に template と無名構造体の指示付き初期化を投げ込むとコンパイルエラーになる！</title>
  <type>rich</type>
  <url>https://engineering.nature.global/entry/clang-template-anonymous-struct</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
