We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pointer_to_values()
1 parent e179cb9 commit e9e7f41Copy full SHA for e9e7f41
1 file changed
jsrc/array.hpp
@@ -35,9 +35,10 @@ num(int64_t n) {
35
return reinterpret_cast<array>(Bnum[n - NUMMIN]);
36
}
37
38
+template <typename Value = int64_t>
39
[[nodiscard]] inline auto
-pointer_to_values(array x) -> int64_t* {
40
- return reinterpret_cast<int64_t*>(reinterpret_cast<C*>(x) + x->kchain.k);
+pointer_to_values(array x) -> Value* {
41
+ return reinterpret_cast<Value*>(reinterpret_cast<C*>(x) + x->kchain.k);
42
43
44
[[nodiscard]] constexpr auto
0 commit comments