DI in c++ hurt by lack of good libraries?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • kangaru

    🦘 A dependency injection container for C++11, C++14 and later

  • For example, in my game engine, the service configuration is in separated headers, and only the places that I'm using the library directly need those headers. See the page 13. Structuring Projects, this is where I'm talking about it.

  • Ichor

    C++20 Microservice Bootstrapping Framework

  • Kind of tooting my own horn here, but I agree with you and have therefore written my own DI-esque library, Ichor. It does support the use-case of resolve-per-graph, but does this through what Ichor calls filters. Essentially, every created dependency can have a custom filter installed that allows run-time control of which requesting entities are requesting it. The repository has some code examples for you to look at. I'm pretty (but not completely) happy with it.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Experimental Boost.DI

    C++14 Dependency Injection Library

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts