<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Constexpr on 我的博客</title><link>https://quhongbin.github.io/tags/constexpr/</link><description>Recent content in Constexpr on 我的博客</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 31 Aug 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://quhongbin.github.io/tags/constexpr/index.xml" rel="self" type="application/rss+xml"/><item><title>constexpr 与编译期求值顺序</title><link>https://quhongbin.github.io/notes/constexpr-eval-order/</link><pubDate>Mon, 31 Aug 2026 00:00:00 +0800</pubDate><guid>https://quhongbin.github.io/notes/constexpr-eval-order/</guid><description>&lt;p&gt;&lt;code&gt;constexpr&lt;/code&gt; 函数&lt;strong&gt;不保证&lt;/strong&gt;在编译期求值。只有在需要常量表达式的场合——数组长度、模板实参、&lt;code&gt;static_assert&lt;/code&gt;——编译器才强制走编译期；其它情况下它可以退化成普通的函数调用。&lt;/p&gt;</description></item></channel></rss>