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);