Replies: 1 comment
-
|
also slang/prelude/slang-cuda-prelude.h Line 4654 in 671b391 slang/prelude/slang-cuda-prelude.h Line 4713 in 671b391 template<typename T, unsigned int N>
void store(uint index[N], T val){}( perhaps it was meant that it should be done like this: template<typename T, unsigned int N>
void store(uint (&index)[N], T val){} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A uint8_t array cannot be used as storage prior
to C++20 without some manipulation (the placement-new operator can be used).
as in
struct TensorViewslang/prelude/slang-cuda-prelude.h
Line 4553 in 671b391
Standart c++17
(https://timsong-cpp.github.io/cppwp/n4659/intro.object#1)
Standart c++20
https://eel.is/c++draft/intro.object#1.sentence-2
https://eel.is/c++draft/intro.object#3
https://eel.is/c++draft/intro.object#13
https://eel.is/c++draft/intro.object#14
https://eel.is/c++draft/intro.object#15
https://eel.is/c++draft/basic.lval#11
and the alignment of the
uint8_t* data;member may differ from the required alignment for the type being converted to.https://eel.is/c++draft/basic.align#1.sentence-4
https://www.en.cppreference.com/w/cpp/language/reinterpret_cast.html
Beta Was this translation helpful? Give feedback.
All reactions