Skip to content
Snippets Groups Projects
Commit ff26f885 authored by Markus Holzer's avatar Markus Holzer
Browse files

[ci skip] Change indexvector access

parent b14c8faa
No related tags found
No related merge requests found
Pipeline #35633 skipped
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
{% endif -%} {% endif -%}
CpuIndexVector & indexVector(Type t) { return cpuVectors_[t]; } CpuIndexVector & indexVector(Type t) { return cpuVectors_[t]; }
{{StructName}} * pointerCpu(Type t) { return &(cpuVectors_[t][0]); } {{StructName}} * pointerCpu(Type t) { return cpuVectors_[t].data(); }
{% if target == 'gpu' -%} {% if target == 'gpu' -%}
{{StructName}} * pointerGpu(Type t) { return gpuVectors_[t]; } {{StructName}} * pointerGpu(Type t) { return gpuVectors_[t]; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment