<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Header-Only on Pi Stack</title>
    <link>https://www.pistack.xyz/tags/header-only/</link>
    <description>Recent content in Header-Only on Pi Stack</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 26 Jun 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.pistack.xyz/tags/header-only/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Self-Hosted C&#43;&#43; Enum Reflection Libraries: magic_enum vs Better Enums vs Wise Enum</title>
      <link>https://www.pistack.xyz/posts/2026-06-26-cpp-enum-reflection-magic-enum-better-enums-wise-enum/</link>
      <pubDate>Fri, 26 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://www.pistack.xyz/posts/2026-06-26-cpp-enum-reflection-magic-enum-better-enums-wise-enum/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;C++ enums are great for type safety, but the language provides no built-in way to convert enum values to strings, iterate over enumerators, or query enum bounds at runtime. This forces developers to maintain hand-written lookup tables, &lt;code&gt;switch&lt;/code&gt; statements, or preprocessor macros — all of which are error-prone and drift out of sync as enums evolve.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Self-Hosted C&#43;&#43; Terminal UI Libraries: FTXUI vs replxx vs linenoise vs tabulate</title>
      <link>https://www.pistack.xyz/posts/2026-06-26-cpp-terminal-ui-libraries-ftxui-replxx-linenoise-tabulate/</link>
      <pubDate>Fri, 26 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://www.pistack.xyz/posts/2026-06-26-cpp-terminal-ui-libraries-ftxui-replxx-linenoise-tabulate/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;Terminal user interfaces (TUIs) are experiencing a renaissance. As developers build more CLI-first tools for DevOps workflows, database management, system monitoring, and developer tooling, the demand for rich, interactive terminal experiences has grown beyond basic &lt;code&gt;printf&lt;/code&gt; and &lt;code&gt;std::cin&lt;/code&gt;. Modern C++ terminal UI libraries provide everything from syntax-highlighted line editing to full dashboard-style layouts — all within a terminal emulator, with no GUI dependencies.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Self-Hosted C&#43;&#43; Variant and Sum Type Libraries: mpark/variant vs tl::expected vs Boost.Variant2</title>
      <link>https://www.pistack.xyz/posts/2026-06-26-cpp-variant-sum-type-libraries-mpark-tl-expected-boost-variant2/</link>
      <pubDate>Fri, 26 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://www.pistack.xyz/posts/2026-06-26-cpp-variant-sum-type-libraries-mpark-tl-expected-boost-variant2/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;Before &lt;code&gt;std::variant&lt;/code&gt; arrived in C++17, representing a value that could be one of several types required either a tagged union (error-prone, no type safety) or inheritance-based polymorphism (heap allocation, virtual dispatch overhead). Even with &lt;code&gt;std::variant&lt;/code&gt; available, there are important use cases that the standard library doesn&amp;rsquo;t fully address: backporting to older C++ standards, never-valueless guarantees, and monadic error handling for function return types.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
