---
title: "August 20, 2026"
url: https://daily.dev/posts/august-20-2026-zjzarhijy
source_url: https://devblogs.microsoft.com/oldnewthing/20260820-00
type: article
source: "The Old New Thing"
published: 2026-08-21T04:11:36.521Z
updated: 2026-08-21T04:11:52.669Z
tags: ["c++"]
reading_time: 1
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# August 20, 2026

**[The Old New Thing](https://daily.dev/sources/oldnewthing)** · 1 min read · 1 upvotes · 0 comments

## Summary

A technique for reducing C++ template bloat by identifying and factoring out the portions of a function that don't depend on the template type, consolidating them into shared, non-templated code to cut down on duplicated compiled output.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/oldnewthing/20260820-00>

## Questions this post answers

### How do I reduce code bloat caused by C++ templates?

Factor out the parts of a templated function that do not actually depend on the template type parameter into a separate, non-templated function or base class. Since the compiler generates a full copy of a template's code for each distinct type it is instantiated with, isolating the type-independent logic into shared code lets multiple instantiations reuse a single compiled copy instead of duplicating it.

_Developers hunting for ways to shrink binary size from heavy template use can track C++ optimization techniques on daily.dev._

## Similar posts on daily.dev

- [July 21, 2026](https://daily.dev/posts/july-21-2026-exucjgquw) · The Old New Thing · 0 upvotes · 0 comments
- [Why CPP is going to be relevant AGAIN?](https://daily.dev/posts/why-cpp-is-going-to-be-relevant-again--p1o0tcdzt) · Medium · 44 upvotes · 4 comments

---

Tags: [#c++](https://daily.dev/tags/c++)

[View this post on daily.dev](https://daily.dev/posts/august-20-2026-zjzarhijy)
