struct A
{
A()
: i{3}
{
}
int i;
int j;
};
struct B
{
int i;
int j;
};
{
A a;
A a2{};
B b;
B b2{};
}
Here is the transformed code:
struct A
{
inline A()
: i{3}
{
}
int i;
int j;
};
struct B
{
int i;
int j;
};
{
A a = A();
A a2 = A{};
B b;
B b2 = {0, 0};
return 0;
}
Live view