const struct config{
private:
std::string file;
config() : file(getConfig()) {}
public:
std::string failsafe = file.substr(file.find("failsafe") + 12);
failsafe.resize(failsafe.find("\""));
size_t ran, price, expiry;
} *ini;
Line 7 - Error: this declaration has no storage class or type specifier. I'm puzzled. Why can't I access failsafe?
substrorresizeinside a structure declaration. Use your constructor to do this.