boost-ext / di

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

Unable to compile with VS 2017 RC, VS 2015 works fine #226

Closed jhruby closed 6 years ago

jhruby commented 7 years ago

struct app_context { auth::authentication_service& authentication_service; };

auto injector = di::make_injector( di::bind().to() );

auto app_context = injector.create();

I am using compiler switch /std:c++14 and X64 build.

C:\workspaces\closure.web\src\libs\di-cpp14\include\boost\di.hpp(1842): error C2248: 'boost::di::v1_0_0::scopes::deduce::scope<TExpected,TGiven>::is_referable<const closure::auth::authentication_service&>': cannot access private member declared in class 'boost::di::v1_0_0::core::dependency<TScope,TExpected,T,TName,TPriority>'

jhruby commented 7 years ago

Did actually someone read this issue?

ColinDuquesnoy commented 7 years ago

I am facing the same issue with VS 2017 Community Edition.

kant2002 commented 6 years ago

@kris-jusiak Any news on this ?

nesteruk commented 6 years ago

Same issue here!

krzysztof-jusiak commented 6 years ago

I believe it should be fixed by https://github.com/boost-experimental/di/commit/fe57643272804d8d713de6abeada4afd9a953278?

krzysztof-jusiak commented 6 years ago

Fixed and verified by appveyor -> https://ci.appveyor.com/project/krzysztof-jusiak/di/history