Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shared_config can't instance std::vector #423

Open
qwertzui11 opened this issue May 9, 2019 · 0 comments
Open

shared_config can't instance std::vector #423

qwertzui11 opened this issue May 9, 2019 · 0 comments
Labels

Comments

@qwertzui11
Copy link

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:

  • di::extension::shared_config gets removed.
  • takes_vector(const std::vector<int>&); changes to takes_vector(std::vector<int>);

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

maybe related issue: #311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants