Skip to content

Commit

Permalink
[WasmDSL] Support NChar in convert()
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelmaltry committed Feb 12, 2024
1 parent 46914be commit c4e9d98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/WasmUtil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ inline To convert(SQL_t &variant)
[](auto actual) -> To requires requires { actual.template to<type, num_simd_lanes>(); } {
return actual.template to<type, num_simd_lanes>();
},
[](NChar actual) -> NChar requires std::same_as<To, NChar> {
return actual;
},
[](auto actual) -> To requires (not requires { actual.template to<type, num_simd_lanes>(); }) {
M_unreachable("illegal conversion");
},
Expand Down

0 comments on commit c4e9d98

Please sign in to comment.