boost-ext / di

C++14 Dependency Injection Library
https://boost-ext.github.io/di
1.14k stars 138 forks source link

shared_config can't instance std::vector #423

Open qwertzui11 opened 5 years ago

qwertzui11 commented 5 years ago

Thanks for the great lib. So far it just-works! Awesome! However I believe I found an issue.

the following code won't compile

class takes_vector {
 public:
  takes_vector(const std::vector<int>&);
};

void test {
  namespace di = boost::di;
  auto injector = di::make_injector<di::extension::shared_config>();
  injector.create<takes_vector>();
}

it works if:

system: ubuntu 19.04 compiler: gcc 8/9 target architecture: arm language: c++17

maybe related issue: #311