wget https://raw.githubusercontent.com/boost-ext/di/cpp14/include/boost/di.hpp
di
namespace alias#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
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 |
} |
-fno-exceptions
.noexcept
.Concepts
to check it out.Benchmarks
to see more.