is it possible to initialize member variables in anonymous class?
for example
class {
public: int &value;
} container;
int x = 3;
class {
public: int &value;
} container = {x};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With