Closed nicholasc closed 6 years ago
Thanks, @nicholasc.
I think MSVC still doesn't support DI variable template usage. Hence, you have to put ()
after bind.
di::bind<int>().to(42)
di::bind<double>().to(87.0)
Working example here -> https://godbolt.org/g/vBp3hD
Hopefully, that will help.
Well that was simple... Thanks @krzysztof-jusiak.
Should this be documented in the readme or somewhere else?
Same environment as OP, the code still compiles, but it still shows up as errors. Any ideas?
Expected Behavior
Using the basic example from the readme, I would expect the following code to compile:
Actual Behavior
I get a compile error
Steps to Reproduce the Problem
Specifications
I know this is a long shot. Let me know if I need to provide additional information.