Ok, I've got the following situation in my project, Ive made a simplified example. How can I get the compiler to shut up and let me initialize it manually in the constructor?
#include <iostream>
struct FooBar {
int b;
FooBar() = delete;
FooBar(int a) {
this->b = a;
}
};
struct Kal {
FooBar foobar;
Kal() {
this->foobar = FooBar(4);
}
};
int main()
{
return 0;
}