|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2021-02-20 16:44:15
Krzysztof Jusiak wrote:
> documentation: https://boost-ext.github.io/di/
This brings up one pretty obvious question, what if I have two constructor
parameters of the same type:
struct X
{
std::string name;
};
struct Y
{
std::string title;
};
struct Z
{
X x;
Y y;
};
How do I inject specific values for X::name and Y::title?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk