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>
Thu, 6 Oct 2016 17:42:38 +0000 (19:42 +0200)
commitbfa14a673eabd3a3f17d68843a634703c821df9c
tree2f92d20a1de6ae08c49d80812775727084db13aa
parent050a92232c0a7ff2251305a030dbd87943c3d467
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.
src/common/types.h