From e7b587d550a8d1d31dc649a134637a662be1b5b5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Jun 2022 21:07:45 +0200 Subject: [PATCH] util/CopyConst: use std::add_const --- src/util/CopyConst.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/CopyConst.hxx b/src/util/CopyConst.hxx index 3d38b8d24..b992c6698 100644 --- a/src/util/CopyConst.hxx +++ b/src/util/CopyConst.hxx @@ -36,5 +36,5 @@ */ template using CopyConst = std::conditional_t, - const To, - To>; + std::add_const_t, + std::remove_const_t>;