Boost C++ Libraries

PrevUpHomeNext
Introduction
Overview
Tutorial
Try It Online!
Benchmarks
User Guide
Examples
Extensions
FAQ
CHANGELOG

Quick Start

wget https://raw.githubusercontent.com/boost-ext/di/cpp14/include/boost/di.hpp
#include "boost/di.hpp"
namespace di = boost::di;
$CXX -std=c++14 ...

Note

[Boost].DI compiles with -fno-exceptions -fno-rtti -Wall -Wextra -Werror -pedantic -pedantic-errors

git clone https://github.com/boost-ext/di && cd di && make

Dependencies

Supported/Tested compilers

Configuration

Macro Description
BOOST_DI_VERSION Current version of [Boost::ext].DI (ex. 1'0'0)
BOOST_DI_CFG Global configuration allows to customize provider and policies (See Config)
BOOST_DI_CFG_CTOR_LIMIT_SIZE Limits number of allowed constructor parameters [0-10, default=10] (See Injections)
BOOST_DI_CFG_DIAGNOSTICS_LEVEL Gives more information with error messages (See Error messages)
BOOST_DI_NAMESPACE_BEGIN namespace boost::inline ext::di::inline v_{version}_{revision}_{patch} {
BOOST_DI_NAMESPACE_END }

Exception Safety

Thread Safety

Error Messages

Performance



PrevUpHomeNext