C++ Polymorphism

Open-source C++ projects categorized as Polymorphism

Top 7 C++ Polymorphism Projects

Polymorphism
  1. dyno

    Runtime polymorphism done right

    Project mention: Visualizing Rust's Vtables: How Dyn Trait Works in Memory | news.ycombinator.com | 2026-09-05

    Ah. Dyno (https://github.com/ldionne/dyno) is good at this stuff. If you have types Base, Child1, Child2, you can just return a Dyno object that can be any of these, expressed as a tagged union and not a Box-equivalent, and then do regular vtable-based or otherwise polymorphic dispatch into the object. You can also arrange it so that if you have a Child3 that can't fit in the (Base, Child1, Child2) union, the Child3 can be heap-allocated and invoked transparently as well. It's open-world type erasure.

    C++ is so freakishly powerful is that it can not only solve this problem, but it can solve it via a regular library and not a language extension.

  2. AppSignal

    AppSignal knows why the f*#k it crashed. Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.

    AppSignal logo
  3. Shoggoth

    Shoggoth: Asmjit Based Polymorphic Encryptor

  4. variant

    C++17 `std::variant` for C++11/14/17

  5. DynaMix

    :fish_cake: A new take on polymorphism

  6. dittobytes

    Metamorphic cross-compilation of C++ & C-code to PIC, BOF & EXE.

  7. te

    C++17 Run-time Polymorphism (Type Erasure) library

  8. polytail

    Rust-like trait-based polymorphism for C++

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ Polymorphism discussion

Log in or Post with

C++ Polymorphism related posts

  • DynaMix 2.0.0 Released

    8 projects | /r/cpp | 13 Apr 2023
  • rust-like traits on plain C++ with short macro (type erasure actually)

    5 projects | /r/cpp | 7 Apr 2023
  • C++ Polymorphism Without Inheritance Using Glaze

    8 projects | /r/cpp | 12 Jan 2023
  • vector of objects

    3 projects | /r/cpp_questions | 7 Aug 2021
  • Type Erasure in C++ Explained

    2 projects | news.ycombinator.com | 15 Apr 2021
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Oct 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Polymorphism projects in C++? This list will help you:

# Project Stars
1 dyno 1,043
2 Shoggoth 810
3 variant 716
4 DynaMix 693
5 dittobytes 650
6 te 498
7 polytail 9

Sponsored
AppSignal knows why the f*#k it crashed.
Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.
www.appsignal.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?