<?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>
  </categories>
  <description>C++のstatic_assert(A == B);は表明失敗時にfalseということしかわからない場合があります。 GCC 12以上、Clang 16以上であれば、比較値をエラーメッセージに表示してくれます。 int main() { constexpr int a = 1; constexpr int b = 2; static_assert(a == b); } GCC : prog.cc: In function 'int main()': prog.cc:5:21: error: static assertion failed 5 | static_assert(a == b); |…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F2024%2F05%2F17%2F122445&quot; title=&quot;static_assertの比較値をエラーメッセージに表示する - 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>2024-05-17 12:24:45</published>
  <title>static_assertの比較値をエラーメッセージに表示する</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/2024/05/17/122445</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
