From c4e9d98b9d2e99035eebdc4cf461a22eb423ec14 Mon Sep 17 00:00:00 2001 From: Marcel Maltry Date: Fri, 15 Dec 2023 10:48:45 +0100 Subject: [PATCH] [WasmDSL] Support `NChar` in `convert()` --- src/backend/WasmUtil.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/WasmUtil.hpp b/src/backend/WasmUtil.hpp index a88c32aa..fac8a8ae 100644 --- a/src/backend/WasmUtil.hpp +++ b/src/backend/WasmUtil.hpp @@ -366,6 +366,9 @@ inline To convert(SQL_t &variant) [](auto actual) -> To requires requires { actual.template to(); } { return actual.template to(); }, + [](NChar actual) -> NChar requires std::same_as { + return actual; + }, [](auto actual) -> To requires (not requires { actual.template to(); }) { M_unreachable("illegal conversion"); },