Skip to content

Instantly share code, notes, and snippets.

View niccroad's full-sized avatar

Nicolas Croad niccroad

  • Wellington, New Zealand
View GitHub Profile
@niccroad
niccroad / DIContainerExample.cpp
Last active December 14, 2022 14:06
Write your own Dependency Injection container
/**
* More complete example code accompanying Write Your Own Dependency Injection Container.
* This is the most straight forward implementation of the DI container. While there is
* slightly more boilerplate there are also more customization and documentation points.
*
* Author Nicolas Croad 2019
*/
#define CATCH_CONFIG_MAIN
#include <catch.hpp>