C++26 - Enter Static Reflection -- Keith Stockdale

By Blog Staff | Jul 13, 2026 01:16 PM | Tags: None

headshot.jpgQuite recently it was announced that the release of GCC 16.1 brought in a load of C++26 reflection goodies. From looking at my LinkedIn, it seemed like everyone was extremely excited for this and a load of static reflection articles started popping up on my feed. This all got me a little excited to try it too, and I felt like this problem would be a good way to explore what static reflection has to offer.

C++26 - Enter Static Reflection

by Keith Stockdale

From the article:

Step 0: Figuring out how to even use reflection?!

As I mentioned, I had never used C++26 reflection, and I genuinely didn’t know how to even engage with it. I found CppReference to be quite lacking right now…

I am sure that will change as time goes on, but for right now, it’s a bit rubbish. So I found myself leaning on two other sources of information:

  1. The standard: Specifically Header synopsis. This was pretty damn great for just being able to find my way around all the facilities available. There are links to all the descriptions of what each facility does and what the expected behaviour is.
  2. Barry Revzin’s blog: Barry’s blog has some absolutely brilliant content around reflection, and I can’t recommend it enough.