the following simple code does not compile in Cuda 11.8, I get error : too many initializer values
But that is very standard C++, right? Is there some setting or switch to get this compiled?
The reason why I do not use standard constructors: Because if I add a constructor, I cannot use that struct anymore as a __constant__
variable
struct A {
int x, y;
};
struct B : public A {
};
int main() {
B b { 10, 20 };
}