leapmotion / autowiring

A C++ Inversion of Control Framework
http://autowiring.io/
Apache License 2.0
148 stars 17 forks source link

Fix vs2015 type deduction error #1012

Closed yeswalrus closed 7 years ago

yeswalrus commented 7 years ago

Changes to the way msvc handles template deduction caused a break. I believe this is the correct fix.

yeswalrus commented 7 years ago

Gotcha. Looks like this isn't a problem in autowiring after all..

jdonald commented 7 years ago

If you use cast the "a new string" to a const char*, the perfect forwarding works in Visual Studio 2015 as well.

Sweet, that gives us another workaround if we decide to retain compatibility with Visual Studio 2015.