common: Work around SFINAE issues in MSVC
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Oct 2016 17:42:38 +0000 (19:42 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 4 Apr 2018 21:14:03 +0000 (23:14 +0200)
commit190d3d00156c568dcc4d248b4dd242180ebdfb9d
tree9d40f3dbdfaddcd13099c9d7044e37bfc4140df7
parentb3f981ea90cadfbce4dd4e9b477dc92c48ee1f13
common: Work around SFINAE issues in MSVC

MSVC 2015 still has... issues with SFINAE, so the usual way to use
std::enable_if doesn't compile. So let's try and SFINAE this in a
different way until MS fixes their compiler.

(cherry picked from commit bfa14a673eabd3a3f17d68843a634703c821df9c)
src/common/types.h