From 3988be348fa4c41a296d3ce6bed71cdda41cb37c Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 2 Nov 2018 10:49:20 +0100 Subject: [PATCH] simplify SFINAE on write_impl to just use enable_if --- include/libtorrent/aux_/io.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libtorrent/aux_/io.hpp b/include/libtorrent/aux_/io.hpp index 9d04157eb..dabd102a3 100644 --- a/include/libtorrent/aux_/io.hpp +++ b/include/libtorrent/aux_/io.hpp @@ -59,10 +59,10 @@ namespace libtorrent { namespace aux { return ret; } - template ::value && - (std::is_integral::value || std::is_enum::value)>::type> - inline typename std::enable_if::type + template + inline typename std::enable_if::value + && (std::is_integral::value || std::is_enum::value) + && sizeof(Byte)==1>::type write_impl(In data, span& view) { T val = static_cast(data);