Skip to content

Commit c4e9d98

Browse files
committed
[WasmDSL] Support NChar in convert()
1 parent 46914be commit c4e9d98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/WasmUtil.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ inline To convert(SQL_t &variant)
366366
[](auto actual) -> To requires requires { actual.template to<type, num_simd_lanes>(); } {
367367
return actual.template to<type, num_simd_lanes>();
368368
},
369+
[](NChar actual) -> NChar requires std::same_as<To, NChar> {
370+
return actual;
371+
},
369372
[](auto actual) -> To requires (not requires { actual.template to<type, num_simd_lanes>(); }) {
370373
M_unreachable("illegal conversion");
371374
},

0 commit comments

Comments
 (0)