Switch socket_array_dispatch_t to match only array<uint8_t, N>

This commit is contained in:
Kp 2016-10-25 01:44:35 +00:00
parent 692dfffe58
commit a3aa3da3d5

View file

@ -455,8 +455,8 @@ public:
{
return apply_array(buf, buflen);
}
template <typename A, typename... Args>
auto operator()(const sockaddr &to, socklen_t tolen, int sock, A &buf, Args &&... args) const -> decltype(apply_array(buf.data(), buf.size()))
template <std::size_t N, typename... Args>
auto operator()(const sockaddr &to, socklen_t tolen, int sock, array<uint8_t, N> &buf, Args &&... args) const -> decltype(apply_array(buf.data(), buf.size()))
{
return apply_array(buf.data(), buf.size());
}