From 405c4e7af1aea680decea2df82342cb44e15ee28 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Wed, 17 Mar 2021 17:01:01 +0200 Subject: [PATCH] serializer: replace enable_if in deserialized_bytes_proxy with constraint Simpler to read and understand. Closes #8303 --- serializer_impl.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serializer_impl.hh b/serializer_impl.hh index 761d81a323..35e26633d9 100644 --- a/serializer_impl.hh +++ b/serializer_impl.hh @@ -469,7 +469,8 @@ public: explicit deserialized_bytes_proxy(Stream stream) : _stream(std::move(stream)) { } - template>> + template + requires std::convertible_to deserialized_bytes_proxy(deserialized_bytes_proxy proxy) : _stream(std::move(proxy._stream)) { }