Use structs rather than type aliases for Unit::Lift and Unit::Drop
authorChristopher Dykes <cdykes@fb.com>
Sat, 19 Nov 2016 01:53:37 +0000 (17:53 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Sat, 19 Nov 2016 02:08:45 +0000 (18:08 -0800)
commitb6746598f0ad8cbcbe0b0da90c035ba5d3f1aab7
treec3ccd77b5564a89ba4cab4fbe9bc1ca3e0883d19
parent4a3cdfdcd873008434204074aee5b0713511a740
Use structs rather than type aliases for Unit::Lift and Unit::Drop

Summary:
VS 2017 RC brings with it fixes for some things and unfortunately, a few known regressions in expression SFINAE. In this case, alias templates with dependent `decltype()` calls are broken, so switch to a templated struct instead.
It's the very last issue mentioned in: https://blogs.msdn.microsoft.com/vcblog/2016/06/07/expression-sfinae-improvements-in-vs-2015-update-3/

Reviewed By: yfeldblum

Differential Revision: D4199676

fbshipit-source-id: 9ce157cc891182509a30b000de1b509063387244
folly/Unit.h