• Skip to main navigation
  • Skip to main content
  • Skip to footer
  • Home
    • Open Source
    • Programming
    • Tech
    • Uncategorized
  • Skip to menu toggle button

Lords Of Tech

For nerds, by nerds

  • Facebook
  • Twitter
  • Email
  • Mastodon
  • Back to top ↑

Tag: reflection

(Sort of) Reflection in C++11

This is yet another trick to achieve reflection-like functionality before Reflection TS, this time needing only C++11. It’s based on using CRTP to fill the object with carefully chosen garbage before initialisation.
Continue reading “(Sort of) Reflection in C++11”…
Posted on: October 13, 2020 Last updated on: October 16, 2020 Comments: 0 Written by: Dugi

Reflection in C++14

How to write a template function that takes a class and executes type-dependent code on all its member variables, without requiring the class to specifically support it?
Continue reading “Reflection in C++14”…
Posted on: September 26, 2020 Last updated on: September 30, 2020 Comments: 0 Written by: Dugi
© 2023 Lords Of Tech | Using Modern WordPress theme. | Back to top ↑
  • Facebook
  • Twitter
  • Email
  • Mastodon
  • Back to top ↑