leapmotion / autowiring

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

Fix has_static_new #1013

Closed yeswalrus closed 7 years ago

yeswalrus commented 7 years ago

MSVC2015, alone among MSVC versions and for reasons that are beyond me chokes on the function name detection portion of the old has_static_new's SFINAE. This overhauls it to be far more concise, and compile correctly.

jdonald commented 7 years ago

This implementation is effectively -38 +10. I've tested platform on OS X and MSVC2013 and it probably works everywhere. Great work, @yeswalrus !