We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efbb555 commit d4192feCopy full SHA for d4192fe
include/jlcxx/array.hpp
@@ -252,6 +252,10 @@ class ArrayRef
252
{
253
return data()[i];
254
}
255
+ else if constexpr(std::is_same<julia_t, static_julia_type<ValueT>>::value && !std::is_same<julia_t, WrappedCppPtr>::value)
256
+ {
257
+ return *reinterpret_cast<ValueT*>(&data()[i]);
258
+ }
259
else
260
261
return *extract_pointer_nonull<ValueT>(data()[i]);
@@ -263,6 +267,10 @@ class ArrayRef
263
267
if constexpr(std::is_same<julia_t, ValueT>::value)
264
268
265
269
270
271
272
273
266
274
275
276
0 commit comments